2022.4+26187-e1209cf7 Apr 14, 2022

11.17  Dir

Defines a direction object. More...

#include <CubitInterfaceEx.hpp>

Public Member Functions

 

Dir (double x, double y, double z)

 

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

 

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

 

std::array< double, 3 > 

get_xyz

 

Get an array of the vector.

 

void 

normalize

 

Normalize ’this’ vector. More...

 

void 

set (double x, double y, double z)

 

Set the xyz values of the vector. More...

 

Dir 

cross (Dir vec2)

 

Returns the cross product of thisXvec2. More...

 

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

 

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

 

Detailed Description

Defines a direction object. 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
normalize()

 void normalize ( )

Normalize ’this’ vector.

Returns:
void
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


y()

 double y ( )

Get the y location of the point.

Returns:
y value


z()

 double z ( )

Get the z location of the point.

Returns:
z value