Cubit Python API  16.06
Public Member Functions | Public Attributes
Dir

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
 

Detailed Description

Defines a direction object.

Constructor & Destructor Documentation

◆ Dir()

Dir ( double  x,
double  y,
double  z 
)
inline

◆ ~Dir()

~Dir ( )
inline

Member Function Documentation

◆ angle()

double angle ( Dir  vec_in )

Returns the interior of two vectors.

return the angle is in radians

◆ cross()

Dir cross ( Dir  vec2 )

Returns the cross product of thisXvec2.

Returns
cross product

◆ dir_print()

void dir_print ( )

Print the output.

◆ distance()

double distance ( Dir  vec_in )

get the distance between two points

◆ dot()

double dot ( Dir  vec2 )

Returns the dot product.

◆ get_xyz()

std::array<double,3> get_xyz ( )

Get an array of the vector.

◆ length()

double length ( )

Returns the length.

◆ normalize()

void normalize ( )

Normalize 'this' vector.

Returns
void

◆ orthogonal_vectors()

std::vector<CubitInterface::Dir> 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
x_in the new x value

◆ set_y()

void set_y ( double  y_in )

Set the y location of the point.

Parameters
y_in the new y value

◆ set_z()

void set_z ( double  z_in )

Set the z location of the point.

Parameters
z_in the new z value

◆ x()

double x ( )

Get the x location of the point.

Returns
x value
See also
y(), z()

◆ y()

double y ( )

Get the y location of the point.

Returns
y value
See also
x(), z()

◆ z()

double z ( )

Get the z location of the point.

Returns
z value
See also
y(), x()

Member Data Documentation

◆ xVal

double xVal

◆ yVal

double yVal

◆ zVal

double zVal