Sensor Scol plugin
Multi platform sensors for handled devices
Public Member Functions | Static Public Member Functions | Data Fields | Friends
Vector3d Class Reference

Public Member Functions

 Vector3d (double x, double y, double z)
 
 Vector3d (const Vector3d &other)
 
void set (double x, double y, double z)
 
void setComponent (int i, double val)
 
void setZero ()
 
void set (Vector3d other)
 
void scale (double s)
 
void normalize ()
 
double length ()
 
bool sameValues (Vector3d other)
 
double getX () const
 
double getY () const
 
double getZ () const
 
Vector3d CrossProduct (Vector3d other)
 
Vector3d operator- ()
 
Vector3d operator+= (Vector3d other)
 
Vector3d operator-= (Vector3d other)
 
Vector3d operator*= (float scalar)
 
Vector3d operator/= (float scalar)
 

Static Public Member Functions

static double dot (Vector3d a, Vector3d b)
 
static void add (Vector3d a, Vector3d b, Vector3d &result)
 
static void sub (Vector3d a, Vector3d b, Vector3d &result)
 
static void cross (Vector3d a, Vector3d b, Vector3d &result)
 
static void ortho (Vector3d v, Vector3d &result)
 
static int largestAbsComponent (Vector3d v)
 

Data Fields

double x
 
double y
 
double z
 

Friends

class Matrix3x3d
 
class SO3Util
 

Detailed Description

Definition at line 8 of file Vector3d.h.

Constructor & Destructor Documentation

◆ Vector3d() [1/3]

Vector3d ( )

Definition at line 6 of file Vector3d.cpp.

◆ Vector3d() [2/3]

Vector3d ( double  x,
double  y,
double  z 
)

Definition at line 16 of file Vector3d.cpp.

◆ Vector3d() [3/3]

Vector3d ( const Vector3d other)

Definition at line 11 of file Vector3d.cpp.

Member Function Documentation

◆ add()

void add ( Vector3d  a,
Vector3d  b,
Vector3d result 
)
static

Definition at line 85 of file Vector3d.cpp.

◆ cross()

void cross ( Vector3d  a,
Vector3d  b,
Vector3d result 
)
static

Definition at line 99 of file Vector3d.cpp.

◆ CrossProduct()

Vector3d CrossProduct ( Vector3d  other)
inline

Definition at line 36 of file Vector3d.h.

◆ dot()

double dot ( Vector3d  a,
Vector3d  b 
)
static

Definition at line 70 of file Vector3d.cpp.

◆ getX()

double getX ( ) const
inline

Definition at line 32 of file Vector3d.h.

◆ getY()

double getY ( ) const
inline

Definition at line 33 of file Vector3d.h.

◆ getZ()

double getZ ( ) const
inline

Definition at line 34 of file Vector3d.h.

◆ largestAbsComponent()

int largestAbsComponent ( Vector3d  v)
static

Definition at line 119 of file Vector3d.cpp.

◆ length()

double length ( )

Definition at line 75 of file Vector3d.cpp.

◆ normalize()

void normalize ( )

Definition at line 61 of file Vector3d.cpp.

◆ operator*=()

Vector3d operator*= ( float  scalar)
inline

Definition at line 56 of file Vector3d.h.

◆ operator+=()

Vector3d operator+= ( Vector3d  other)
inline

Definition at line 46 of file Vector3d.h.

◆ operator-()

Vector3d operator- ( )
inline

Definition at line 41 of file Vector3d.h.

◆ operator-=()

Vector3d operator-= ( Vector3d  other)
inline

Definition at line 51 of file Vector3d.h.

◆ operator/=()

Vector3d operator/= ( float  scalar)
inline

Definition at line 61 of file Vector3d.h.

◆ ortho()

void ortho ( Vector3d  v,
Vector3d result 
)
static

Definition at line 106 of file Vector3d.cpp.

◆ sameValues()

bool sameValues ( Vector3d  other)

Definition at line 80 of file Vector3d.cpp.

◆ scale()

void scale ( double  s)

Definition at line 54 of file Vector3d.cpp.

◆ set() [1/2]

void set ( double  x,
double  y,
double  z 
)

Definition at line 21 of file Vector3d.cpp.

◆ set() [2/2]

void set ( Vector3d  other)

Definition at line 49 of file Vector3d.cpp.

◆ setComponent()

void setComponent ( int  i,
double  val 
)

Definition at line 28 of file Vector3d.cpp.

◆ setZero()

void setZero ( )

Definition at line 44 of file Vector3d.cpp.

◆ sub()

void sub ( Vector3d  a,
Vector3d  b,
Vector3d result 
)
static

Definition at line 92 of file Vector3d.cpp.

Friends And Related Symbol Documentation

◆ Matrix3x3d

friend class Matrix3x3d
friend

Definition at line 10 of file Vector3d.h.

◆ SO3Util

friend class SO3Util
friend

Definition at line 11 of file Vector3d.h.

Field Documentation

◆ x

double x

Definition at line 66 of file Vector3d.h.

◆ y

double y

Definition at line 67 of file Vector3d.h.

◆ z

double z

Definition at line 68 of file Vector3d.h.


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