geolib2
Public Member Functions | Protected Attributes | Friends | List of all members
geo::Vector3 Class Reference

#include <matrix.h>

Public Member Functions

real dot (const Vector3 &v) const
 
const realgetX () const
 
const realgetY () const
 
const realgetZ () const
 
real length () const
 
real length2 () const
 
void normalize ()
 
Vector3 operator* (real f) const
 
Vector3 operator+ (const Vector3 &v) const
 
Vector3 operator- (const Vector3 &v) const
 
Vector3 operator/ (real f) const
 
void setX (real x)
 
void setY (real y)
 
void setZ (real z)
 
 Vector3 ()
 
 Vector3 (const real *v)
 
 Vector3 (real x, real y, real z)
 
const realx () const
 
const realy () const
 
const realz () const
 

Protected Attributes

real v_ [3]
 

Friends

class Matrix3x3
 
Vector3 operator* (real s, const Vector3 &v)
 
Vector3 operator- (const Vector3 &v)
 
std::ostreamoperator<< (std::ostream &out, const Vector3 &v)
 
class Transform
 

Detailed Description

Definition at line 12 of file matrix.h.

Constructor & Destructor Documentation

◆ Vector3() [1/3]

geo::Vector3::Vector3 ( )
inline

Definition at line 19 of file matrix.h.

◆ Vector3() [2/3]

geo::Vector3::Vector3 ( real  x,
real  y,
real  z 
)
inline

Definition at line 21 of file matrix.h.

◆ Vector3() [3/3]

geo::Vector3::Vector3 ( const real v)
inline

Definition at line 27 of file matrix.h.

Member Function Documentation

◆ dot()

real geo::Vector3::dot ( const Vector3 v) const
inline

Definition at line 56 of file matrix.h.

◆ getX()

const real& geo::Vector3::getX ( ) const
inline

Definition at line 35 of file matrix.h.

◆ getY()

const real& geo::Vector3::getY ( ) const
inline

Definition at line 36 of file matrix.h.

◆ getZ()

const real& geo::Vector3::getZ ( ) const
inline

Definition at line 37 of file matrix.h.

◆ length()

real geo::Vector3::length ( ) const
inline

Definition at line 43 of file matrix.h.

◆ length2()

real geo::Vector3::length2 ( ) const
inline

Definition at line 47 of file matrix.h.

◆ normalize()

void geo::Vector3::normalize ( )
inline

Definition at line 51 of file matrix.h.

◆ operator*()

Vector3 geo::Vector3::operator* ( real  f) const
inline

Definition at line 68 of file matrix.h.

◆ operator+()

Vector3 geo::Vector3::operator+ ( const Vector3 v) const
inline

Definition at line 60 of file matrix.h.

◆ operator-()

Vector3 geo::Vector3::operator- ( const Vector3 v) const
inline

Definition at line 64 of file matrix.h.

◆ operator/()

Vector3 geo::Vector3::operator/ ( real  f) const
inline

Definition at line 72 of file matrix.h.

◆ setX()

void geo::Vector3::setX ( real  x)
inline

Definition at line 39 of file matrix.h.

◆ setY()

void geo::Vector3::setY ( real  y)
inline

Definition at line 40 of file matrix.h.

◆ setZ()

void geo::Vector3::setZ ( real  z)
inline

Definition at line 41 of file matrix.h.

◆ x()

const real& geo::Vector3::x ( ) const
inline

Definition at line 31 of file matrix.h.

◆ y()

const real& geo::Vector3::y ( ) const
inline

Definition at line 32 of file matrix.h.

◆ z()

const real& geo::Vector3::z ( ) const
inline

Definition at line 33 of file matrix.h.

Friends And Related Function Documentation

◆ Matrix3x3

friend class Matrix3x3
friend

Definition at line 14 of file matrix.h.

◆ operator*

Vector3 operator* ( real  s,
const Vector3 v 
)
friend

Definition at line 81 of file matrix.h.

◆ operator-

Vector3 operator- ( const Vector3 v)
friend

Definition at line 85 of file matrix.h.

◆ operator<<

std::ostream& operator<< ( std::ostream out,
const Vector3 v 
)
friend

Definition at line 76 of file matrix.h.

◆ Transform

friend class Transform
friend

Definition at line 15 of file matrix.h.

Member Data Documentation

◆ v_

real geo::Vector3::v_[3]
protected

Definition at line 91 of file matrix.h.


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