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
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.

std::array< double, 3 >
get_xyz()
Get an array of the vector.

void
normalize()
Normalize 'this' vector.

void
set( double x, double y, double z)
Set the xyz values of the vector.

cross( Dir vec2)
Returns the cross product of thisXvec2.

double
dot( Dir vec2)
Returns the dot product.

double
length()
Returns the length.

double
distance( Dir vec_in)
get the distance between two points

double
angle( Dir vec_in)
Returns the interior of two vectors.

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

double angle(

return the angle is in radians

Dir cross(
Returns cross product
void normalize()
    Returns void
    void set(
    • double x,
    • double y,
    • double z)
    Returns void
    void set_x(
    • double x_in)
    Parameters
    • x_in
      the new x value
    void set_y(
    • double y_in)
    Parameters
    • y_in
      the new y value
    void set_z(
    • double z_in)
    Parameters
    • z_in
      the new z value
    double x()
      Returns x value
      See Also y(), z()
      double y()
        Returns y value
        See Also x(), z()
        double z()
          Returns z value
          See Also y(), x()