Euphoria
eu::unit3f Struct Reference

#include <vec3.h>

Inheritance diagram for eu::unit3f:
eu::vec3f

Public Member Functions

constexpr unit3f operator- () const
 
constexpr bool is_valid () const
 
bool operator== (const unit3f &rhs)=delete
 
constexpr unit3f (float a, float b, float c)
 
- Public Member Functions inherited from eu::vec3f
 vec3f (float a)
 
 vec3f (const std::tuple< float, float, float > &a)
 
constexpr vec3f (float ax, float ay, float az)
 
 vec3f (const float *a)
 
 vec3f (const vec2f &a, float az)
 
float dot (const vec3f &rhs) const
 
vec3f cross (const vec3f &u) const
 
void operator+= (const vec3f &rhs)
 
void operator-= (const vec3f &rhs)
 
void operator/= (float rhs)
 
void operator*= (float rhs)
 
vec3f operator- () const
 
float * get_data_ptr ()
 
const float * get_data_ptr () const
 
constexpr float get_length_squared () const
 
float get_length () const
 
void normalize ()
 
unit3f get_normalized () const
 
unit3f as_normalized () const
 
bool operator== (const vec3f &rhs)=delete
 

Static Public Member Functions

static unit3f to_unit (float x, float y, float z)
 
static unit3f to_unit (const vec3f &v)
 
- Static Public Member Functions inherited from eu::vec3f
static vec3f from_to (const vec3f &from, const vec3f &to)
 

Additional Inherited Members

- Public Attributes inherited from eu::vec3f
float x
 
float y
 
float z
 

Detailed Description

Definition at line 101 of file vec3.h.

Constructor & Destructor Documentation

◆ unit3f()

constexpr eu::unit3f::unit3f ( float  a,
float  b,
float  c 
)
inlineconstexpr

Definition at line 119 of file vec3.h.

Member Function Documentation

◆ is_valid()

constexpr bool eu::unit3f::is_valid ( ) const
inlineconstexpr

Definition at line 109 of file vec3.h.

◆ operator-()

constexpr unit3f eu::unit3f::operator- ( ) const
inlineconstexpr

Definition at line 103 of file vec3.h.

◆ operator==()

bool eu::unit3f::operator== ( const unit3f rhs)
delete

◆ to_unit() [1/2]

unit3f eu::unit3f::to_unit ( const vec3f v)
static

Definition at line 199 of file vec3.cc.

◆ to_unit() [2/2]

unit3f eu::unit3f::to_unit ( float  x,
float  y,
float  z 
)
static

Definition at line 192 of file vec3.cc.


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