Cubit Python API 16.08
|
Defines a direction object. More...
Public Member Functions |
|
Dir (double x, double y, double z) | |
~Dir () | |
double | angle (Dir vec_in) |
Returns the interior of two vectors. More... |
|
Dir | cross (Dir vec2) |
Returns the cross product of thisXvec2. More... |
|
void | dir_print () |
Print the output. More... |
|
double | distance (Dir vec_in) |
get the distance between two points More... |
|
double | dot (Dir vec2) |
Returns the dot product. More... |
|
std::array< double, 3 > | get_xyz () |
Get an array of the vector. More... |
|
double | length () |
Returns the length. More... |
|
void | normalize () |
Normalize 'this' vector. More... |
|
std::vector< CubitInterface::Dir > | orthogonal_vectors () |
Finds 2 (arbitrary) vectors that are orthogonal to this one. More... |
|
void | set (double x, double y, double z) |
Set the xyz values of the vector. More... |
|
void | set_x (double x_in) |
Set the x location of the point. More... |
|
void | set_y (double y_in) |
Set the y location of the point. More... |
|
void | set_z (double z_in) |
Set the z location of the point. More... |
|
double | x () |
Get the x location of the point. More... |
|
double | y () |
Get the y location of the point. More... |
|
double | z () |
Get the z location of the point. More... |
|
Public Attributes |
|
double | xVal |
double | yVal |
double | zVal |
Defines a direction object.
|
inline |
|
inline |
double angle | ( | Dir | vec_in | ) |
Returns the interior of two vectors.
return the angle is in radians
void dir_print | ( | ) |
Print the output.
double distance | ( | Dir | vec_in | ) |
get the distance between two points
double dot | ( | Dir | vec2 | ) |
Returns the dot product.
std::array<double,3> get_xyz | ( | ) |
Get an array of the vector.
double length | ( | ) |
Returns the length.
void normalize | ( | ) |
Normalize 'this' vector.
std::vector<CubitInterface::Dir> orthogonal_vectors | ( | ) |
Finds 2 (arbitrary) vectors that are orthogonal to this one.
void set | ( | double | x, |
double | y, | ||
double | z | ||
) |
Set the xyz values of the vector.
void set_x | ( | double | x_in | ) |
Set the x location of the point.
x_in | the new x value |
void set_y | ( | double | y_in | ) |
Set the y location of the point.
y_in | the new y value |
void set_z | ( | double | z_in | ) |
Set the z location of the point.
z_in | the new z value |
double xVal |
double yVal |
double zVal |