IOSS 2.0
Loading...
Searching...
No Matches
vector3d Class Reference

#include <vector3d.h>

Public Member Functions

 vector3d ()=default
 
 vector3d (double X, double Y, double Z)
 
bool operator== (const vector3d &from) const
 
bool operator!= (const vector3d &from) const
 
void set (double X, double Y, double Z)
 
void set (const double location[3])
 
vector3dreverse ()
 
vector3d operator- () const
 
vector3doperator+= (const vector3d &from)
 
vector3doperator-= (const vector3d &from)
 
vector3doperator*= (double scalar)
 
vector3doperator/= (double scalar)
 
double length () const
 
double normalize (double tolerance=1e-06)
 
vector3d cross (const vector3d &from) const
 

Static Public Member Functions

static vector3d plane_normal (const vector3d &v1, const vector3d &v2, const vector3d &v3)
 

Public Attributes

double x {}
 
double y {}
 
double z {}
 

Friends

vector3d operator* (double scalar, const vector3d &from)
 
vector3d operator* (const vector3d &lhs, double scalar)
 
vector3d operator/ (const vector3d &lhs, double scalar)
 
vector3d operator+ (const vector3d &lhs, const vector3d &rhs)
 
vector3d operator- (const vector3d &lhs, const vector3d &rhs)
 

Constructor & Destructor Documentation

◆ vector3d() [1/2]

vector3d::vector3d ( )
default

◆ vector3d() [2/2]

vector3d::vector3d ( double X,
double Y,
double Z )

Member Function Documentation

◆ cross()

vector3d vector3d::cross ( const vector3d & from) const
inline

◆ length()

double vector3d::length ( ) const

◆ normalize()

double vector3d::normalize ( double tolerance = 1e-06)

◆ operator!=()

bool vector3d::operator!= ( const vector3d & from) const

◆ operator*=()

vector3d & vector3d::operator*= ( double scalar)
inline

◆ operator+=()

vector3d & vector3d::operator+= ( const vector3d & from)
inline

◆ operator-()

vector3d vector3d::operator- ( ) const

◆ operator-=()

vector3d & vector3d::operator-= ( const vector3d & from)
inline

◆ operator/=()

vector3d & vector3d::operator/= ( double scalar)

◆ operator==()

bool vector3d::operator== ( const vector3d & from) const

◆ plane_normal()

vector3d vector3d::plane_normal ( const vector3d & v1,
const vector3d & v2,
const vector3d & v3 )
static

◆ reverse()

vector3d & vector3d::reverse ( )

◆ set() [1/2]

void vector3d::set ( const double location[3])

◆ set() [2/2]

void vector3d::set ( double X,
double Y,
double Z )

Friends And Related Symbol Documentation

◆ operator* [1/2]

vector3d operator* ( const vector3d & lhs,
double scalar )
friend

◆ operator* [2/2]

vector3d operator* ( double scalar,
const vector3d & from )
friend

◆ operator+

vector3d operator+ ( const vector3d & lhs,
const vector3d & rhs )
friend

◆ operator-

vector3d operator- ( const vector3d & lhs,
const vector3d & rhs )
friend

◆ operator/

vector3d operator/ ( const vector3d & lhs,
double scalar )
friend

Member Data Documentation

◆ x

double vector3d::x {}

◆ y

double vector3d::y {}

◆ z

double vector3d::z {}

The documentation for this class was generated from the following files: