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

panda/src/linmath/lmat_ops_src.h File Reference

#include "lmat_ops_src.I"

Go to the source code of this file.

Functions

BEGIN_PUBLISH INLINE_LINMATH FLOATNAME (LVecBase3) operator *(const FLOATNAME(LVecBase3)&v
 Returns the indicated row of the matrix as a three-component vector.

BEGIN_PUBLISH INLINE_LINMATH
const 
FLOATNAME (LMatrix3)&m)
 Sets each element of the matrix to the indicated fill_value.

INLINE_LINMATH FLOATNAME (LVector2) operator *(const FLOATNAME(LVector2)&v
 Returns a normalized vector from the given vector.

INLINE_LINMATH FLOATNAME (LPoint2) operator *(const FLOATNAME(LPoint2)&v
 This is a two-component point in space.

INLINE_LINMATH FLOATNAME (LVecBase4) operator *(const FLOATNAME(LVecBase4)&v
 Retrieves the indicated row of the matrix as a 4-component vector.

INLINE_LINMATH const FLOATNAME (LMatrix4)&m)
 Sorts matrices lexicographically, componentwise.

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

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


Detailed Description

Definition in file lmat_ops_src.h.


Function Documentation

INLINE_LINMATH 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.

References FLOATNAME2, and INLINE_LINMATH.

INLINE_LINMATH 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.

References FLOATNAME2, and INLINE_LINMATH.

INLINE_LINMATH const FLOATNAME LMatrix4   )  const
 

Sorts matrices lexicographically, componentwise.

This function definition must appear first, since some inline functions below take advantage of it.

Definition at line 81 of file lcast_to_src.I.

INLINE_LINMATH 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.

References FLOATNAME2, and INLINE_LINMATH.

INLINE_LINMATH FLOATNAME LPoint2   ) 
 

This is a two-component point in space.

Definition at line 53 of file lcast_to_src.I.

INLINE_LINMATH 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.

References FLOATNAME2, and INLINE_LINMATH.

BEGIN_PUBLISH INLINE_LINMATH const FLOATNAME LMatrix3   ) 
 

Sets each element of the matrix to the indicated fill_value.

This function definition must appear first, since some inline functions below take advantage of it.

Definition at line 73 of file lcast_to_src.I.

BEGIN_PUBLISH INLINE_LINMATH 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.

References FLOATNAME2, and INLINE_LINMATH.


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