FlowEngine 9.000
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
FlowEngine::Vector3 Struct Reference

#include <CommonDef.h>

Public Member Functions

Vector3 cross (const Vector3 &other) const
 
double dot (const Vector3 &other) const
 
double length () const
 
Vector3 normalized () const
 
double & operator() (int index)
 
const double & operator() (int index) const
 
 Vector3 ()=default
 
 Vector3 (double x, double y, double z)
 
double & x ()
 
double x () const
 
double & y ()
 
double y () const
 
double & z ()
 
double z () const
 

Public Attributes

double data [3] = { }
 

Friends

Vector3 operator* (const Vector3 &v, double scalar)
 
Vector3 operator* (double scalar, const Vector3 &v)
 
Vector3 operator+ (const Vector3 &lhs, const Vector3 &rhs)
 
Vector3 operator- (const Vector3 &lhs, const Vector3 &rhs)
 

Detailed Description

a 3d vector

Constructor & Destructor Documentation

◆ Vector3() [1/2]

FlowEngine::Vector3::Vector3 ( )
default

◆ Vector3() [2/2]

FlowEngine::Vector3::Vector3 ( double  x,
double  y,
double  z 
)
inline

Member Function Documentation

◆ cross()

Vector3 FlowEngine::Vector3::cross ( const Vector3 other) const
inline
Returns
the cross product of this vector with another

◆ dot()

double FlowEngine::Vector3::dot ( const Vector3 other) const
inline
Returns
the dot product of this vector with another

◆ length()

double FlowEngine::Vector3::length ( ) const
inline
Returns
the length of this vector

◆ normalized()

Vector3 FlowEngine::Vector3::normalized ( ) const
inline
Returns
the normalized version of this vector

◆ operator()() [1/2]

double & FlowEngine::Vector3::operator() ( int  index)
inline
Returns
the component at the given index

◆ operator()() [2/2]

const double & FlowEngine::Vector3::operator() ( int  index) const
inline
Returns
the component at the given index

◆ x() [1/2]

double & FlowEngine::Vector3::x ( )
inline

◆ x() [2/2]

double FlowEngine::Vector3::x ( ) const
inline

◆ y() [1/2]

double & FlowEngine::Vector3::y ( )
inline

◆ y() [2/2]

double FlowEngine::Vector3::y ( ) const
inline

◆ z() [1/2]

double & FlowEngine::Vector3::z ( )
inline

◆ z() [2/2]

double FlowEngine::Vector3::z ( ) const
inline

Friends And Related Function Documentation

◆ operator* [1/2]

Vector3 operator* ( const Vector3 v,
double  scalar 
)
friend

◆ operator* [2/2]

Vector3 operator* ( double  scalar,
const Vector3 v 
)
friend

◆ operator+

Vector3 operator+ ( const Vector3 lhs,
const Vector3 rhs 
)
friend

◆ operator-

Vector3 operator- ( const Vector3 lhs,
const Vector3 rhs 
)
friend

Member Data Documentation

◆ data

double FlowEngine::Vector3::data[3] = { }