Defines a direction object. More...
#include <CubitInterfaceEx.hpp>
|
|
Dir (double x, double y, double z>) |
|
|
~Dir () |
|
double |
angle (Dir vec_in) |
|
Returns the interior of two vectors. |
|
Dir |
cross (Dir vec2) |
|
Returns the cross product of thisXvec2. |
|
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. |
|
void |
set_y (double y_in) |
|
Set the y location of the point. |
|
void |
set_z (double z_in) |
|
Set the z location of the point. |
|
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. |
|
Defines a direction object.
◆ Dir()
Dir |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
|
|
|
inline |
◆ ~Dir()
◆ angle()
double angle |
( |
Dir |
vec_in |
) |
|
Returns the interior of two vectors.
return the angle is in radians
◆ cross()
Returns the cross product of thisXvec2.
- Returns
- cross product
◆ dir_print()
◆ distance()
double distance |
( |
Dir |
vec_in |
) |
|
get the distance between two points
◆ dot()
◆ get_xyz()
std::array< double, 3 > get_xyz |
( |
|
) |
|
Get an array of the vector.
◆ length()
◆ normalize()
Normalize 'this' vector.
- Returns
- void
◆ orthogonal_vectors()
Finds 2 (arbitrary) vectors that are orthogonal to this one.
◆ set()
void set |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
|
|
Set the xyz values of the vector.
- Returns
- void
◆ set_x()
void set_x |
( |
double |
x_in |
) |
|
Set the x location of the point.
- Parameters
-
◆ set_y()
void set_y |
( |
double |
y_in |
) |
|
Set the y location of the point.
- Parameters
-
◆ set_z()
void set_z |
( |
double |
z_in |
) |
|
Set the z location of the point.
- Parameters
-
◆ x()
Get the x location of the point.
- Returns
- x value
- See also
- y(), z()
◆ y()
Get the y location of the point.
- Returns
- y value
- See also
- x(), z()
◆ z()
Get the z location of the point.
- Returns
- z value
- See also
- y(), x()
◆ xVal
◆ yVal
◆ zVal