Geom Software - C++ Programming and Geometry Libraries
Fade3D Documentation pages v0.99
FADE3D::Vector3 Class Reference

3D Vector

#include <Vector3.h>

Public Member Functions

 Vector3 (const double x_, const double y_, const double z_)
 Constructor.
 
 Vector3 ()
 Constructor The vector is initialized to (0,0,0)
 
double x () const
 Get the x-value.
 
double y () const
 Get the y-value.
 
double z () const
 Get the z-value.
 
void set (const double x_, const double y_, const double z_)
 Set the values.
 
double length () const
 Get the length of the vector.
 
double operator* (const Vector3 &other) const
 Scalar product.
 
Vector3 operator* (double val) const
 Multiply by a scalar value.
 
Vector3 operator/ (double val) const
 Divide by a scalar value.
 

Protected Attributes

double valX
 
double valY
 
double valZ
 

The documentation for this class was generated from the following file: