Inheritance diagram for mini3d::vector3d:
Public Member Functions | |
vector3d () | |
A default constructor. | |
vector3d (const array<double, 3>& src) | |
A copy constructor from base class. | |
vector3d (const vector3d& src) | |
A copy constructor. | |
vector3d (double v[3]) | |
A constructor. | |
vector3d (double vx, double vy, double vz) | |
A constructor. | |
virtual | ~vector3d () |
A destructor. | |
array3d | data () const |
Get the data as a double array. | |
array3d | dataGL () const |
Get the data as a double array (for OpenGL rendering). | |
double | operator* (const vector3d& rhs) const |
Get the dot product. | |
vector3d | operator^ (const vector3d& rhs) const |
Get the cross product. | |
vector3d& | operator= (const array<double, 3>& src) |
Copy from the base class. | |
double | angle (const vector3d& rhs) const |
Angle make with two vectors in radian ( 0 <= opAngle <= PI ). | |
Static Public Attributes | |
static const vector3d | _zero_vector |
|
A default constructor. The vector will set as [0 0 0]. |
|
A copy constructor from base class.
|
|
A copy constructor.
|
|
A constructor. The vector will set as [v[0] v[1] v[2]].
|
|
A constructor. The vector will set as [vx vy vz].
|
|
A destructor.
|
|
Angle make with two vectors in radian ( 0 <= opAngle <= PI ).
|
|
Get the data as a double array.
|
|
Get the data as a double array (for OpenGL rendering).
|
|
Get the dot product.
|
|
Copy from the base class.
|
|
Get the cross product.
|
|
|