Dir Class Reference
Public Member Functions
Dir( double x, double y, double z)
~Dir()
double
x()
Get the x location of the point.
double
y()
Get the y location of the point.
double
z()
Get the z location of the point.
void
void
void
std::array< double, 3 >
get_xyz()
Get an array of the vector.
void
normalize()
Normalize 'this' vector.
void
double
double
length()
Returns the length.
double
void
dir_print()
Print the output.
std::vector< CubitInterface::Dir >
orthogonal_vectors()
Finds 2 (arbitrary) vectors that are orthogonal to this one.
Public Attributes
double
xVal
double
yVal
double
zVal
Member Function Documentation
return the angle is in radians
void normalize()
Returns void
void set(
- double x,
- double y,
- double z)
Returns void
void set_x(
- double x_in)
Parameters
-
x_inthe new x value
void set_y(
- double y_in)
Parameters
-
y_inthe new y value
void set_z(
- double z_in)
Parameters
-
z_inthe new z value