Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/linmath/lcast_to_src.I File Reference

Go to the source code of this file.

Functions

INLINE_LINMATH FLOATNAME2 (LVecBase2) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LVecBase2)&source)
 Returns the indicated row of the matrix as a two-component vector, ignoring the last column.

INLINE_LINMATH FLOATNAME2 (LVecBase3) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LVecBase3)&source)
 Returns the indicated row of the matrix as a three-component vector.

INLINE_LINMATH FLOATNAME2 (LVecBase4) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LVecBase4)&source)
 Retrieves the indicated row of the matrix as a 4-component vector.

INLINE_LINMATH FLOATNAME2 (LVector2) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LVector2)&source)
 Returns a normalized vector from the given vector.

INLINE_LINMATH FLOATNAME2 (LVector3) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LVector3)&source)
 This, along with get_angle(), returns the rotation represented by the quaternion as an angle about an arbitrary axis.

INLINE_LINMATH FLOATNAME2 (LVector4) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LVector4)&source)
 Returns a normalized vector from the given vector.

INLINE_LINMATH FLOATNAME2 (LPoint2) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LPoint2)&source)
 This is a two-component point in space.

INLINE_LINMATH FLOATNAME2 (LPoint3) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LPoint3)&source)
 This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance).

INLINE_LINMATH FLOATNAME2 (LPoint4) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LPoint4)&source)
 This is a four-component point in space.

INLINE_LINMATH FLOATNAME2 (LQuaternion) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LQuaternion)&c)
 This is the base quaternion class.

INLINE_LINMATH FLOATNAME2 (LMatrix3) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LMatrix3)&source)
 Sets each element of the matrix to the indicated fill_value.

INLINE_LINMATH FLOATNAME2 (LMatrix4) lcast_to(FLOATTYPE2 *
INLINE_LINMATH const FLOATNAME (LMatrix4)&source)
 Sorts matrices lexicographically, componentwise.


Detailed Description

Definition in file lcast_to_src.I.


Function Documentation

INLINE_LINMATH const FLOATNAME LMatrix4   ) 
 

Sorts matrices lexicographically, componentwise.

Returns a number less than 0 if this matrix sorts before the other one, greater than zero if it sorts after, 0 if they are equivalent (within the indicated tolerance).

Definition at line 81 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LMatrix3   ) 
 

Sets each element of the matrix to the indicated fill_value.

This is of questionable value, but is sometimes useful when initializing to zero.

Definition at line 73 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LQuaternion   ) 
 

This is the base quaternion class.

This returns the angle, in degrees counterclockwise about the axis.

Definition at line 68 of file lcast_to_src.I.

References FLOATNAME2, and INLINE_LINMATH.

INLINE_LINMATH const FLOATNAME LPoint4   ) 
 

This is a four-component point in space.

Definition at line 63 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LPoint3   ) 
 

This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance).

Some of the methods are slightly different between LPoint3 and LVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.

Definition at line 58 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LPoint2   ) 
 

This is a two-component point in space.

Definition at line 53 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LVector4   ) 
 

Returns a normalized vector from the given vector.

Returns true if the vector was normalized, false if it was a zero-length vector.

Definition at line 48 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LVector3   ) 
 

This, along with get_angle(), returns the rotation represented by the quaternion as an angle about an arbitrary axis.

This returns the axis.

Definition at line 43 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LVector2   ) 
 

Returns a normalized vector from the given vector.

Returns true if the vector was normalized, false if it was a zero-length vector.

Definition at line 38 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LVecBase4   ) 
 

Retrieves the indicated row of the matrix as a 4-component vector.

This is a fully general operation.

Definition at line 33 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LVecBase3   ) 
 

Returns the indicated row of the matrix as a three-component vector.

This is a fully general operation.

Definition at line 28 of file lcast_to_src.I.

INLINE_LINMATH const FLOATNAME LVecBase2   ) 
 

Returns the indicated row of the matrix as a two-component vector, ignoring the last column.

This assumes the matrix is an affine transform.

Definition at line 23 of file lcast_to_src.I.

INLINE_LINMATH FLOATNAME2 LMatrix4   ) 
 

INLINE_LINMATH FLOATNAME2 LMatrix3   ) 
 

INLINE_LINMATH FLOATNAME2 LQuaternion   ) 
 

INLINE_LINMATH FLOATNAME2 LPoint4   ) 
 

INLINE_LINMATH FLOATNAME2 LPoint3   ) 
 

INLINE_LINMATH FLOATNAME2 LPoint2   ) 
 

INLINE_LINMATH FLOATNAME2 LVector4   ) 
 

INLINE_LINMATH FLOATNAME2 LVector3   ) 
 

INLINE_LINMATH FLOATNAME2 LVector2   ) 
 

INLINE_LINMATH FLOATNAME2 LVecBase4   ) 
 

INLINE_LINMATH FLOATNAME2 LVecBase3   ) 
 

INLINE_LINMATH FLOATNAME2 LVecBase2   ) 
 


Generated on Fri May 2 00:45:50 2003 for Panda by doxygen1.3