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 floatgetValue () 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
 
Vec3foperator*= (float s)
 
Vec3foperator+= (const Vec3f &v)
 
Vec3foperator-= (const Vec3f &v)
 
Vec3foperator/= (float s)
 
Vec3fsetValue (const float v[3])
 
Vec3fsetValue (const Vec3f &v)
 
Vec3fsetValue (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)
 

Detailed Description

Definition at line 16 of file basic.h.

Member Typedef Documentation

◆ ScalarType

typedef float ScalarType

Definition at line 20 of file basic.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Dim 

Definition at line 21 of file basic.h.

Constructor & Destructor Documentation

◆ Vec3f() [1/4]

Vec3f ( )
inline

Definition at line 23 of file basic.h.

◆ Vec3f() [2/4]

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

Definition at line 24 of file basic.h.

◆ Vec3f() [3/4]

Vec3f ( const GfxTL::Vector3Df v)
inline

Definition at line 29 of file basic.h.

+ Here is the call graph for this function:

◆ Vec3f() [4/4]

Vec3f ( const float  v[3])
inlineexplicit

Definition at line 37 of file basic.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ cross()

Vec3f cross ( const Vec3f v) const
inline

Definition at line 107 of file basic.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dot() [1/2]

float dot ( const float v) const
inline

Definition at line 102 of file basic.h.

+ Here is the call graph for this function:

◆ dot() [2/2]

float dot ( const Vec3f v) const
inline

Definition at line 92 of file basic.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ equals()

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

Definition at line 135 of file basic.h.

+ Here is the call graph for this function:

◆ getValue() [1/3]

const float* getValue ( ) const
inline

Definition at line 51 of file basic.h.

◆ getValue() [2/3]

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

Definition at line 64 of file basic.h.

◆ getValue() [3/3]

void getValue ( Vec3f v) const
inline

Definition at line 279 of file basic.h.

+ Here is the call graph for this function:

◆ length()

float length ( ) const
inline

Definition at line 120 of file basic.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ negate()

void negate ( )
inline

Definition at line 228 of file basic.h.

◆ normalize()

float normalize ( )
inline

Definition at line 125 of file basic.h.

+ Here is the caller graph for this function:

◆ operator const float *()

operator const float * ( ) const
inline

Definition at line 72 of file basic.h.

◆ operator float *()

operator float * ( )
inline

Definition at line 77 of file basic.h.

◆ operator*()

Vec3f operator* ( const Vec3f v) const
inline

Definition at line 263 of file basic.h.

+ Here is the call graph for this function:

◆ operator*=()

Vec3f& operator*= ( float  s)
inline

Definition at line 192 of file basic.h.

+ Here is the call graph for this function:

◆ operator+=()

Vec3f& operator+= ( const Vec3f v)
inline

Definition at line 210 of file basic.h.

+ Here is the call graph for this function:

◆ operator-=()

Vec3f& operator-= ( const Vec3f v)
inline

Definition at line 219 of file basic.h.

+ Here is the call graph for this function:

◆ operator/=()

Vec3f& operator/= ( float  s)
inline

Definition at line 201 of file basic.h.

+ Here is the call graph for this function:

◆ setValue() [1/3]

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

Definition at line 42 of file basic.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setValue() [2/3]

Vec3f& setValue ( const Vec3f v)
inline

Definition at line 270 of file basic.h.

+ Here is the call graph for this function:

◆ setValue() [3/3]

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

Definition at line 56 of file basic.h.

◆ sqrLength()

float sqrLength ( ) const
inline

Definition at line 115 of file basic.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 187 of file basic.h.

◆ operator* [1/2]

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

Definition at line 241 of file basic.h.

◆ operator* [2/2]

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

Definition at line 237 of file basic.h.

◆ operator+

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

Definition at line 249 of file basic.h.

◆ operator- [1/2]

Vec3f operator- ( const Vec3f v1)
friend

Definition at line 257 of file basic.h.

◆ operator- [2/2]

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

Definition at line 253 of file basic.h.

◆ operator/

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

Definition at line 245 of file basic.h.

◆ operator<

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

Definition at line 150 of file basic.h.

◆ operator<=

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

Definition at line 159 of file basic.h.

◆ operator==

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

Definition at line 140 of file basic.h.

◆ operator>

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

Definition at line 168 of file basic.h.

◆ operator>=

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

Definition at line 177 of file basic.h.


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