Vec3f Class Reference

#include <VisionX/components/pointcloud_processor/EfficientRANSACPrimitiveExtractor/EfficientRANSAC/basic.h>

Public Types

enum  { Dim = 3 }
 
typedef float ScalarType
 

Public Member Functions

Vec3f cross (const Vec3f &v) const
 
float dot (const float *v) const
 
float dot (const Vec3f &v) const
 
bool equals (const Vec3f &v, float tolerance) const
 
const float * getValue () const
 
void getValue (float &x, float &y, float &z) const
 
void getValue (Vec3f &v) const
 
float length () const
 
void negate ()
 
float normalize ()
 
 operator const float * () const
 
 operator float * ()
 
Vec3f operator* (const Vec3f &v) const
 
Vec3f & operator*= (float s)
 
Vec3f & operator+= (const Vec3f &v)
 
Vec3f & operator-= (const Vec3f &v)
 
Vec3f & operator/= (float s)
 
Vec3f & setValue (const float v[3])
 
Vec3f & setValue (const Vec3f &v)
 
Vec3f & setValue (float x, float y, float z)
 
float sqrLength () const
 
 Vec3f ()
 
 Vec3f (const float v[3])
 
 Vec3f (const GfxTL::Vector3Df &v)
 
 Vec3f (float x, float y, float z)
 

Friends

bool operator!= (const Vec3f &v1, const Vec3f &v2)
 
Vec3f operator* (const Vec3f &v, float s)
 
Vec3f operator* (float s, const Vec3f &v)
 
Vec3f operator+ (const Vec3f &v1, const Vec3f &v2)
 
Vec3f operator- (const Vec3f &v1)
 
Vec3f operator- (const Vec3f &v1, const Vec3f &v2)
 
Vec3f operator/ (const Vec3f &v, float s)
 
bool operator< (const Vec3f &v1, const Vec3f &v2)
 
bool operator<= (const Vec3f &v1, const Vec3f &v2)
 
bool operator== (const Vec3f &v1, const Vec3f &v2)
 
bool operator> (const Vec3f &v1, const Vec3f &v2)
 
bool operator>= (const Vec3f &v1, const Vec3f &v2)
 

Member Typedef Documentation

◆ ScalarType

typedef float ScalarType

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Dim 

Constructor & Destructor Documentation

◆ Vec3f() [1/4]

Vec3f ( )
inline

◆ Vec3f() [2/4]

Vec3f ( float x,
float y,
float z )
inline

◆ Vec3f() [3/4]

Vec3f ( const GfxTL::Vector3Df & v)
inline

◆ Vec3f() [4/4]

Vec3f ( const float v[3])
inlineexplicit

Member Function Documentation

◆ cross()

Vec3f cross ( const Vec3f & v) const
inline

◆ dot() [1/2]

float dot ( const float * v) const
inline

◆ dot() [2/2]

float dot ( const Vec3f & v) const
inline

◆ equals()

bool equals ( const Vec3f & v,
float tolerance ) const
inline

◆ getValue() [1/3]

const float * getValue ( ) const
inline

◆ getValue() [2/3]

void getValue ( float & x,
float & y,
float & z ) const
inline

◆ getValue() [3/3]

void getValue ( Vec3f & v) const
inline

◆ length()

float length ( ) const
inline

◆ negate()

void negate ( )
inline

◆ normalize()

float normalize ( )
inline

◆ operator const float *()

operator const float * ( ) const
inline

◆ operator float *()

operator float * ( )
inline

◆ operator*()

Vec3f operator* ( const Vec3f & v) const
inline

◆ operator*=()

Vec3f & operator*= ( float s)
inline

◆ operator+=()

Vec3f & operator+= ( const Vec3f & v)
inline

◆ operator-=()

Vec3f & operator-= ( const Vec3f & v)
inline

◆ operator/=()

Vec3f & operator/= ( float s)
inline

◆ setValue() [1/3]

Vec3f & setValue ( const float v[3])
inline

◆ setValue() [2/3]

Vec3f & setValue ( const Vec3f & v)
inline

◆ setValue() [3/3]

Vec3f & setValue ( float x,
float y,
float z )
inline

◆ sqrLength()

float sqrLength ( ) const
inline

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const Vec3f & v1,
const Vec3f & v2 )
friend

◆ operator* [1/2]

Vec3f operator* ( const Vec3f & v,
float s )
friend

◆ operator* [2/2]

Vec3f operator* ( float s,
const Vec3f & v )
friend

◆ operator+

Vec3f operator+ ( const Vec3f & v1,
const Vec3f & v2 )
friend

◆ operator- [1/2]

Vec3f operator- ( const Vec3f & v1)
friend

◆ operator- [2/2]

Vec3f operator- ( const Vec3f & v1,
const Vec3f & v2 )
friend

◆ operator/

Vec3f operator/ ( const Vec3f & v,
float s )
friend

◆ operator<

bool operator< ( const Vec3f & v1,
const Vec3f & v2 )
friend

◆ operator<=

bool operator<= ( const Vec3f & v1,
const Vec3f & v2 )
friend

◆ operator==

bool operator== ( const Vec3f & v1,
const Vec3f & v2 )
friend

◆ operator>

bool operator> ( const Vec3f & v1,
const Vec3f & v2 )
friend

◆ operator>=

bool operator>= ( const Vec3f & v1,
const Vec3f & v2 )
friend

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