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::GeVec3d Struct Reference

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

Public Member Functions

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

Public Attributes

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

Properties

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

Detailed Description

A three dimensional double vector or point.

Constructor & Destructor Documentation

X3g::Plugin::GeVec3d::GeVec3d ( double  x,
double  y,
double  z 
)

Constructor.

X3g::Plugin::GeVec3d::GeVec3d ( double  v)

Initializes x, y and z with same value.

Member Function Documentation

GeVec3d X3g::Plugin::GeVec3d::CrossProduct ( GeVec3d  v)

Returns the cross product of this vector with another vector.

double X3g::Plugin::GeVec3d::DotProduct ( GeVec3d  v)

Returns the dot product of this vector with another vector.

bool X3g::Plugin::GeVec3d::IsSame ( GeVec3d  other,
double  tol 
)

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

GeVec3d X3g::Plugin::GeVec3d::Normalized ( )

Returns a new vector with normalized length.

GeVec3f X3g::Plugin::GeVec3d::ToVec3f ( )

Converts this vector to GeVec3f.

Member Data Documentation

double X3g::Plugin::GeVec3d::x

X coordinate.

double X3g::Plugin::GeVec3d::y

Y coordinate.

double X3g::Plugin::GeVec3d::z

Z coordinate.

Property Documentation

double X3g::Plugin::GeVec3d::Length
get

Returns the length of the vector.

double X3g::Plugin::GeVec3d::Length2
get

Returns the squared length of the vector.