API Reference > OdGe Classes > OdGeVector3d Class
OdGeVector3d Class
OdGeVector3d
Syntax
C++
class OdGeVector3d;

GeVector3d.h

This class represents vectors in 3D space.

OdGeVector3d may be viewed as an array[3] of doubles. 

Corresponding C++ library: TD_Ge 

 

 
Name 
Description 
 
This is the overview for the OdGeVector3d constructor overload. 
 
Name 
Description 
 
Additive identity vector. 
 
X-Axis vector. 
 
Y-Axis vector. 
 
Z-Axis vector. 
 
x 
X-coordinate. 
 
y 
Y-coordinate. 
 
z 
Z-coordinate. 
 
Name 
Description 
 
Returns the angle of this vector projected onto the specified plane
 
 
This is the overview for the angleTo method overload. 
 
This is the overview for the asPoint method overload. 
 
This is the overview for the convert2d method overload. 
 
Returns the cross product of this vector and the specified vector.
 
 
Returns the dot product of this vector and the specified vector.
 
 
This is the overview for the isCodirectionalTo method overload. 
 
Returns true if and only if vect is identical to this vector, within the specified tolerance.
 
 
This is the overview for the isParallelTo method overload. 
 
This is the overview for the isPerpendicularTo method overload. 
 
Returns true if and only if the length of this vector is 1.0 within the specified tolerance.
 
 
Returns true if and only if the length of this vector is 0.0 within the specified tolerance.
 
 
Returns the index of the largest absolute coordinate of this vector. 
 
Returns the length of this vector. 
 
Returns the square of the length of this vector. 
 
Mirrors the entity about the plane passing through the origin with the specified normal, and returns a reference to the entity.
 
 
Negates this vector (-x, -y, -z), and returns a reference to this vector. 
 
Returns the unit vector codirectional with this vector.
 
 
This is the overview for the normalize method overload. 
 
Sets this vector to the unit vector codirectional with this vector, and returns the length prior to normalization. 
 
This is the overview for the orthoProject method overload. 
 
Returns a vector perpendicular to this one. 
 
This is the overview for the project method overload. 
 
Rotates this vector the specified angle about the specified axis, and returns a reference to this vector.
 
 
set 
This is the overview for the set method overload. 
 
Sets the length of this vector. 
 
This is the overview for the setToProduct method overload. 
 
Sets this vector to vector1 + vector1, and returns a reference to this vector.
 
 
Applies the 3D transformation matrix to this vector.
 
 
Name 
Description 
 
- 
This is the overview for the - operator overload. 
 
!= 
Inequality operator for the OdGeVector3d class.
 
 
* 
Multiplication operator for the OdGeVector3d class.
 
 
*= 
Multiplication operator for the OdGeVector3d class.
 
 
/ 
Division operator for the OdGeVector3d class.
 
 
/= 
Division operator for the OdGeVector3d class.
 
 
[] 
This is the overview for the [] operator overload. 
 
+ 
Addition operator for the OdGeVector3d class.
 
 
+= 
Addition operator for the OdGeVector3d class.
 
 
-= 
Subtraction operator for the OdGeVector3d class.
 
 
== 
Equality operator for the OdGeVector3d class.
 
 
Returns the equivalent 3D tranformation matrix. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.