Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.util.math.geom.Point3 Class Reference

Represents a 3D point. More...

Inheritance diagram for com.beyondar.android.util.math.geom.Point3:
Collaboration diagram for com.beyondar.android.util.math.geom.Point3:

Public Member Functions

 Point3 (float x, float y, float z)
 Constructs a 3D point. More...
 
 Point3 (Point3 p)
 
void set (float x, float y, float z)
 Sets point coordinates. More...
 
void add (float x, float y, float z)
 Adds given coordinates to 3D point coordinates. More...
 
void add (Point3 p)
 Adds the point's coordinates. More...
 
float[] getCoordinatesArray ()
 
String toString ()
 
void subtract (Point3 p)
 Subtracts the point's coordinates. More...
 
float[] array ()
 Returns a three dimension array with the coordinates. More...
 
void set (float[] floatArray)
 
void inverseScale (Point3 scale)
 Scales the point, dividing the current coordinates with the given scale. More...
 
void scale (Point3 scale)
 Scales the point, multiplying the current coordinates with the given scale. More...
 
void set (Point3 p)
 Copies the coordinates of the given point. More...
 
void rotatePointDegrees_x (double angle_degrees, Point3 origin)
 
void rotatePointDegrees_y (double angle_degrees, Point3 origin)
 
void rotatePointDegrees_z (double angle_degrees, Point3 origin)
 
void rotatePointRadians_z (double angle_radians, Point3 origin)
 
void rotatePointRadians_x (double angle_radians, Point3 origin)
 
void rotatePointRadians_y (double angle_radians, Point3 origin)
 
void copy (Point3 out)
 
void add (float x, float y)
 Adds given x and y to point x and way. More...
 
void add (Point2 p)
 Adds a point to this one, adding given point x and y coordinates to this x and y point. More...
 

Static Public Member Functions

static Point3 getVolatilePoint (float x, float y, float z)
 

Public Attributes

float z
 z coordinate
 
float x
 x coordinate
 
float y
 y coordinate
 

Detailed Description

Represents a 3D point.

Constructor & Destructor Documentation

com.beyondar.android.util.math.geom.Point3.Point3 ( float  x,
float  y,
float  z 
)

Constructs a 3D point.

Parameters
xx coordinate
yy coordinate
zz coordinate

Member Function Documentation

void com.beyondar.android.util.math.geom.Point3.add ( float  x,
float  y,
float  z 
)

Adds given coordinates to 3D point coordinates.

Parameters
xx coordinate
yy coordinate
zz coordinate

Here is the call graph for this function:

Here is the caller graph for this function:

void com.beyondar.android.util.math.geom.Point2.add ( float  x,
float  y 
)
inherited

Adds given x and y to point x and way.

Parameters
x
y
void com.beyondar.android.util.math.geom.Point3.add ( Point3  p)

Adds the point's coordinates.

Parameters
pthe point

Here is the call graph for this function:

void com.beyondar.android.util.math.geom.Point2.add ( Point2  p)
inherited

Adds a point to this one, adding given point x and y coordinates to this x and y point.

Parameters
pthe point
float [] com.beyondar.android.util.math.geom.Point3.array ( )

Returns a three dimension array with the coordinates.

Returns
void com.beyondar.android.util.math.geom.Point3.inverseScale ( Point3  scale)

Scales the point, dividing the current coordinates with the given scale.

Parameters
scalethe scale
void com.beyondar.android.util.math.geom.Point3.scale ( Point3  scale)

Scales the point, multiplying the current coordinates with the given scale.

Parameters
scalethe scale
void com.beyondar.android.util.math.geom.Point3.set ( float  x,
float  y,
float  z 
)

Sets point coordinates.

Parameters
xx coordinate
yy coordinate
zz coordinate

Here is the caller graph for this function:

void com.beyondar.android.util.math.geom.Point3.set ( Point3  p)

Copies the coordinates of the given point.

Parameters
pthe point
void com.beyondar.android.util.math.geom.Point3.subtract ( Point3  p)

Subtracts the point's coordinates.

Parameters
pthe point

Here is the call graph for this function:


The documentation for this class was generated from the following file: