Blender V4.3
mikk::float3 Struct Reference

#include <mikk_float3.hh>

Public Member Functions

 float3 ()=default
 
 float3 (const float *ptr)
 
 float3 (const float(*ptr)[3])
 
 float3 (float value)
 
 float3 (int value)
 
 float3 (float x_, float y_, float z_)
 
float length_squared () const
 
float length () const
 
void operator+= (const float3 &b)
 
float3 normalize () const
 
float reduce_add () const
 

Static Public Member Functions

static float3 zero ()
 
static float distance (const float3 &a, const float3 &b)
 

Public Attributes

float x
 
float y
 
float z
 

Friends

float3 operator* (const float3 &a, float b)
 
float3 operator* (float b, const float3 &a)
 
float3 operator- (const float3 &a, const float3 &b)
 
float3 operator- (const float3 &a)
 
bool operator== (const float3 &a, const float3 &b)
 
float3 operator+ (const float3 &a, const float3 &b)
 
float3 operator* (const float3 &a, const float3 &b)
 

Detailed Description

Definition at line 15 of file mikk_float3.hh.

Constructor & Destructor Documentation

◆ float3() [1/6]

mikk::float3::float3 ( )
default

◆ float3() [2/6]

mikk::float3::float3 ( const float * ptr)
inline

Definition at line 20 of file mikk_float3.hh.

◆ float3() [3/6]

mikk::float3::float3 ( const float(*) ptr[3])
inline

Definition at line 22 of file mikk_float3.hh.

◆ float3() [4/6]

mikk::float3::float3 ( float value)
inlineexplicit

Definition at line 24 of file mikk_float3.hh.

◆ float3() [5/6]

mikk::float3::float3 ( int value)
inlineexplicit

Definition at line 26 of file mikk_float3.hh.

◆ float3() [6/6]

mikk::float3::float3 ( float x_,
float y_,
float z_ )
inline

Definition at line 28 of file mikk_float3.hh.

Member Function Documentation

◆ distance()

static float mikk::float3::distance ( const float3 & a,
const float3 & b )
inlinestatic

Definition at line 70 of file mikk_float3.hh.

References b.

Referenced by mikk::distance().

◆ length()

float mikk::float3::length ( ) const
inline

Definition at line 65 of file mikk_float3.hh.

References length_squared(), and sqrtf.

Referenced by normalize().

◆ length_squared()

float mikk::float3::length_squared ( ) const
inline

Definition at line 60 of file mikk_float3.hh.

References z.

Referenced by mikk::Mikktspace< Mesh >::initTriangle(), and length().

◆ normalize()

float3 mikk::float3::normalize ( ) const
inline

Definition at line 92 of file mikk_float3.hh.

References len, and length().

Referenced by mikk::project().

◆ operator+=()

void mikk::float3::operator+= ( const float3 & b)
inline

Definition at line 80 of file mikk_float3.hh.

References b.

◆ reduce_add()

float mikk::float3::reduce_add ( ) const
inline

Definition at line 98 of file mikk_float3.hh.

References z.

◆ zero()

static float3 mikk::float3::zero ( )
inlinestatic

Definition at line 30 of file mikk_float3.hh.

Friends And Related Symbol Documentation

◆ operator* [1/3]

float3 operator* ( const float3 & a,
const float3 & b )
friend

Definition at line 87 of file mikk_float3.hh.

◆ operator* [2/3]

float3 operator* ( const float3 & a,
float b )
friend

Definition at line 35 of file mikk_float3.hh.

◆ operator* [3/3]

float3 operator* ( float b,
const float3 & a )
friend

Definition at line 40 of file mikk_float3.hh.

◆ operator+

float3 operator+ ( const float3 & a,
const float3 & b )
friend

Definition at line 75 of file mikk_float3.hh.

◆ operator- [1/2]

float3 operator- ( const float3 & a)
friend

Definition at line 50 of file mikk_float3.hh.

◆ operator- [2/2]

float3 operator- ( const float3 & a,
const float3 & b )
friend

Definition at line 45 of file mikk_float3.hh.

◆ operator==

bool operator== ( const float3 & a,
const float3 & b )
friend

Definition at line 55 of file mikk_float3.hh.

Member Data Documentation

◆ x

float mikk::float3::x

◆ y

float mikk::float3::y

◆ z

float mikk::float3::z

Definition at line 16 of file mikk_float3.hh.

Referenced by length_squared(), and reduce_add().


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