Euphoria
eu::quatf Struct Reference

#include <quat.h>

Public Member Functions

constexpr quatf (float aw, const vec3f &v)
 
float * get_data_ptr ()
 
void normalize ()
 
vec3f create_from_right_up_in (const vec3f &v) const
 returns In*Z + Right*X + Up*Y More...
 
quatf get_rotated (const quatf &q) const
 
unit3f rotate_around_origo (const unit3f &v) const
 
quatf get_negated () const
 
mat4f to_mat4 () const
 
AxisAngle to_axis_angle () const
 
const float * get_data_ptr () const
 
vec3f get_vec_part () const
 
quatf get_conjugate () const
 
quatf get_inverse () const
 
quatf get_identity () const
 
float get_length () const
 
float get_length_squared () const
 
quatf get_normalized () const
 
unit3f get_in () const
 
unit3f get_out () const
 
unit3f get_right () const
 
unit3f get_left () const
 
unit3f get_up () const
 
unit3f get_down () const
 
void operator+= (const quatf &rhs)
 
void operator-= (const quatf &rhs)
 
void operator*= (float rhs)
 
void operator*= (const quatf &rhs)
 

Static Public Member Functions

static quatf from_axis_angle (const AxisAngle &aa)
 
static quatf from_ypr (const Angle &yaw, const Angle &pitch, const Angle &roll)
 
static quatf from_to (const quatf &from, const quatf &to)
 
static quatf from_random (Random *random)
 
static quatf look_at (const vec3f &from, const vec3f &to, const unit3f &up)
 
static quatf look_in_direction (const unit3f &dir, const unit3f &up)
 

Public Attributes

float w
 
float x
 
float y
 
float z
 

Detailed Description

Definition at line 14 of file quat.h.

Constructor & Destructor Documentation

◆ quatf()

constexpr eu::quatf::quatf ( float  aw,
const vec3f v 
)
inlineconstexpr

Definition at line 21 of file quat.h.

Member Function Documentation

◆ create_from_right_up_in()

vec3f eu::quatf::create_from_right_up_in ( const vec3f v) const

returns In*Z + Right*X + Up*Y

Definition at line 196 of file quat.cc.

◆ from_axis_angle()

quatf eu::quatf::from_axis_angle ( const AxisAngle aa)
static

Definition at line 23 of file quat.cc.

◆ from_random()

quatf eu::quatf::from_random ( Random random)
static

Definition at line 65 of file quat.cc.

◆ from_to()

quatf eu::quatf::from_to ( const quatf from,
const quatf to 
)
static

Definition at line 57 of file quat.cc.

◆ from_ypr()

quatf eu::quatf::from_ypr ( const Angle yaw,
const Angle pitch,
const Angle roll 
)
static

Definition at line 34 of file quat.cc.

◆ get_conjugate()

quatf eu::quatf::get_conjugate ( ) const

Definition at line 112 of file quat.cc.

◆ get_data_ptr() [1/2]

float * eu::quatf::get_data_ptr ( )

Definition at line 6 of file quat.cc.

◆ get_data_ptr() [2/2]

const float * eu::quatf::get_data_ptr ( ) const

Definition at line 11 of file quat.cc.

◆ get_down()

unit3f eu::quatf::get_down ( ) const

Definition at line 191 of file quat.cc.

◆ get_identity()

quatf eu::quatf::get_identity ( ) const

Definition at line 136 of file quat.cc.

◆ get_in()

unit3f eu::quatf::get_in ( ) const

Definition at line 186 of file quat.cc.

◆ get_inverse()

quatf eu::quatf::get_inverse ( ) const

Definition at line 119 of file quat.cc.

◆ get_left()

unit3f eu::quatf::get_left ( ) const

Definition at line 189 of file quat.cc.

◆ get_length()

float eu::quatf::get_length ( ) const

Definition at line 146 of file quat.cc.

◆ get_length_squared()

float eu::quatf::get_length_squared ( ) const

Definition at line 153 of file quat.cc.

◆ get_negated()

quatf eu::quatf::get_negated ( ) const

Definition at line 129 of file quat.cc.

◆ get_normalized()

quatf eu::quatf::get_normalized ( ) const

Definition at line 178 of file quat.cc.

◆ get_out()

unit3f eu::quatf::get_out ( ) const

Definition at line 187 of file quat.cc.

◆ get_right()

unit3f eu::quatf::get_right ( ) const

Definition at line 188 of file quat.cc.

◆ get_rotated()

quatf eu::quatf::get_rotated ( const quatf q) const

Definition at line 105 of file quat.cc.

◆ get_up()

unit3f eu::quatf::get_up ( ) const

Definition at line 190 of file quat.cc.

◆ get_vec_part()

vec3f eu::quatf::get_vec_part ( ) const

Definition at line 16 of file quat.cc.

◆ look_at()

quatf eu::quatf::look_at ( const vec3f from,
const vec3f to,
const unit3f up 
)
static

Definition at line 98 of file quat.cc.

◆ look_in_direction()

quatf eu::quatf::look_in_direction ( const unit3f dir,
const unit3f up 
)
static

Definition at line 332 of file quat.cc.

◆ normalize()

void eu::quatf::normalize ( )

Definition at line 160 of file quat.cc.

◆ operator*=() [1/2]

void eu::quatf::operator*= ( const quatf rhs)

Definition at line 302 of file quat.cc.

◆ operator*=() [2/2]

void eu::quatf::operator*= ( float  rhs)

Definition at line 292 of file quat.cc.

◆ operator+=()

void eu::quatf::operator+= ( const quatf rhs)

Definition at line 272 of file quat.cc.

◆ operator-=()

void eu::quatf::operator-= ( const quatf rhs)

Definition at line 282 of file quat.cc.

◆ rotate_around_origo()

unit3f eu::quatf::rotate_around_origo ( const unit3f v) const

Definition at line 203 of file quat.cc.

◆ to_axis_angle()

AxisAngle eu::quatf::to_axis_angle ( ) const

Definition at line 82 of file quat.cc.

◆ to_mat4()

mat4f eu::quatf::to_mat4 ( ) const

Definition at line 75 of file quat.cc.

Member Data Documentation

◆ w

float eu::quatf::w

Definition at line 16 of file quat.h.

◆ x

float eu::quatf::x

Definition at line 17 of file quat.h.

◆ y

float eu::quatf::y

Definition at line 18 of file quat.h.

◆ z

float eu::quatf::z

Definition at line 19 of file quat.h.


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