Blender V5.0
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.

References ptr, x, y, and z.

◆ float3() [3/6]

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

Definition at line 22 of file mikk_float3.hh.

References float, float3(), and ptr.

◆ float3() [4/6]

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

Definition at line 24 of file mikk_float3.hh.

References x, y, and z.

◆ float3() [5/6]

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

Definition at line 26 of file mikk_float3.hh.

References float, x, y, and z.

◆ float3() [6/6]

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

Definition at line 28 of file mikk_float3.hh.

References x, y, and z.

Member Function Documentation

◆ distance()

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

Definition at line 70 of file mikk_float3.hh.

References b, and float3().

◆ 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 x, y, and 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 float3(), 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, and float3().

◆ reduce_add()

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

Definition at line 98 of file mikk_float3.hh.

References x, y, and z.

◆ zero()

float3 mikk::float3::zero ( )
inlinestatic

Definition at line 30 of file mikk_float3.hh.

References float3().

◆ operator* [1/3]

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

Definition at line 87 of file mikk_float3.hh.

References b, float3(), x, y, and z.

◆ operator* [2/3]

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

Definition at line 35 of file mikk_float3.hh.

References b, float3(), x, y, and z.

◆ operator* [3/3]

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

Definition at line 40 of file mikk_float3.hh.

References b, float3(), x, y, and z.

◆ operator+

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

Definition at line 75 of file mikk_float3.hh.

References b, float3(), x, y, and z.

◆ operator- [1/2]

float3 operator- ( const float3 & a)
friend

Definition at line 50 of file mikk_float3.hh.

References float3(), x, y, and z.

◆ operator- [2/2]

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

Definition at line 45 of file mikk_float3.hh.

References b, float3(), x, y, and z.

◆ operator==

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

Definition at line 55 of file mikk_float3.hh.

References b, float3(), x, y, and z.

Member Data Documentation

◆ x

◆ y

◆ z


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