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

Represents a geometric ray, compound of a Point3 and a Vector3. More...

Public Member Functions

 Ray (Point3 p, Vector3 v)
 Constructs a ray from a point and a vector. More...
 
 Ray (Vector3 v)
 Constructs a ray from a point and a vector. More...
 
 Ray (float vec_x, float vec_y, float vec_z)
 Constructs a ray from a point and a vector. More...
 
Point3 getPoint (float t)
 Returns the point in the ray that corresponds to the given t parameter. More...
 
Point3 getPoint ()
 Returns the starting point for this ray. More...
 
Vector3 getVector ()
 Returns the vector defining the ray. More...
 
void setVector (float x, float y, float z)
 
Ray clone ()
 
void copy (Ray ray)
 

Static Public Member Functions

static Ray getVolatileRay (Point3 p, Vector3 v)
 

Detailed Description

Represents a geometric ray, compound of a Point3 and a Vector3.

Constructor & Destructor Documentation

com.beyondar.android.util.math.geom.Ray.Ray ( Point3  p,
Vector3  v 
)

Constructs a ray from a point and a vector.

Parameters
pthe point
vthe vector
com.beyondar.android.util.math.geom.Ray.Ray ( Vector3  v)

Constructs a ray from a point and a vector.

The point is defined as (0,0,0)

Parameters
vthe vector
com.beyondar.android.util.math.geom.Ray.Ray ( float  vec_x,
float  vec_y,
float  vec_z 
)

Constructs a ray from a point and a vector.

The point is defined as (0,0,0)

Parameters
vec_xthe vector x value
vec_ythe vector y value
vec_zthe vector z value

Member Function Documentation

Point3 com.beyondar.android.util.math.geom.Ray.getPoint ( float  t)

Returns the point in the ray that corresponds to the given t parameter.

Parameters
tt parameter
Returns
the corresponding point
Point3 com.beyondar.android.util.math.geom.Ray.getPoint ( )

Returns the starting point for this ray.

Returns
the starting point for this ray
Vector3 com.beyondar.android.util.math.geom.Ray.getVector ( )

Returns the vector defining the ray.

Returns
the vector defining the ray

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