pCon.planner Plugin SDK  Version 8.9
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | Properties | List of all members
X3g::Plugin::GeVec3f Struct Reference

A three dimensional float vector or point. More...

Public Member Functions

 GeVec3f (float x, float y, float z)
 Constructor. More...
 
 GeVec3f (float v)
 Initializes x, y and z with same value. More...
 
GeVec3f Normalized ()
 Returns a new vector with normalized length. More...
 
float DotProduct (GeVec3f v)
 Returns the dot product of this vector with another vector. More...
 
GeVec3f CrossProduct (GeVec3f v)
 Returns the cross product of this vector with another vector. More...
 
bool IsSame (GeVec3f other, float tol)
 Returns true if this vector equals another vector using a tolerance. More...
 
GeVec3d ToVec3d ()
 Converts this vector to GeVec3d. More...
 

Public Attributes

float x
 X coordinate. More...
 
float y
 Y coordinate. More...
 
float z
 Z coordinate. More...
 

Properties

float Length [get]
 Returns the length of the vector. More...
 
float Length2 [get]
 Returns the squared length of the vector. More...
 

Detailed Description

A three dimensional float vector or point.

Constructor & Destructor Documentation

X3g::Plugin::GeVec3f::GeVec3f ( float  x,
float  y,
float  z 
)

Constructor.

X3g::Plugin::GeVec3f::GeVec3f ( float  v)

Initializes x, y and z with same value.

Member Function Documentation

GeVec3f X3g::Plugin::GeVec3f::CrossProduct ( GeVec3f  v)

Returns the cross product of this vector with another vector.

float X3g::Plugin::GeVec3f::DotProduct ( GeVec3f  v)

Returns the dot product of this vector with another vector.

bool X3g::Plugin::GeVec3f::IsSame ( GeVec3f  other,
float  tol 
)

Returns true if this vector equals another vector using a tolerance.

GeVec3f X3g::Plugin::GeVec3f::Normalized ( )

Returns a new vector with normalized length.

GeVec3d X3g::Plugin::GeVec3f::ToVec3d ( )

Converts this vector to GeVec3d.

Member Data Documentation

float X3g::Plugin::GeVec3f::x

X coordinate.

float X3g::Plugin::GeVec3f::y

Y coordinate.

float X3g::Plugin::GeVec3f::z

Z coordinate.

Property Documentation

float X3g::Plugin::GeVec3f::Length
get

Returns the length of the vector.

float X3g::Plugin::GeVec3f::Length2
get

Returns the squared length of the vector.