Euphoria
eu::vec4f Struct Reference

#include <vec4.h>

Public Member Functions

 vec4f (float a)
 
 vec4f (float ax, float ay, float az, float aw)
 
 vec4f (const vec3f &a, float aw)
 
 vec4f (const Scale3f &a)
 
 vec4f (const float *a)
 
float * get_data_ptr ()
 
vec3f to_vec3 (float ww) const
 asserts that the w component is what is expected More...
 
vec3f to_vec3 () const
 
const float * get_data_ptr () const
 
bool operator== (const vec4f &rhs)=delete
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Detailed Description

Definition at line 13 of file vec4.h.

Constructor & Destructor Documentation

◆ vec4f() [1/5]

eu::vec4f::vec4f ( float  a)
explicit

Definition at line 6 of file vec4.cc.

◆ vec4f() [2/5]

eu::vec4f::vec4f ( float  ax,
float  ay,
float  az,
float  aw 
)

Definition at line 15 of file vec4.cc.

◆ vec4f() [3/5]

eu::vec4f::vec4f ( const vec3f a,
float  aw 
)
Parameters
awpoint is 1, vector is 0

Definition at line 24 of file vec4.cc.

◆ vec4f() [4/5]

eu::vec4f::vec4f ( const Scale3f a)

Definition at line 33 of file vec4.cc.

◆ vec4f() [5/5]

eu::vec4f::vec4f ( const float *  a)
explicit

Definition at line 42 of file vec4.cc.

Member Function Documentation

◆ get_data_ptr() [1/2]

float * eu::vec4f::get_data_ptr ( )

Definition at line 67 of file vec4.cc.

◆ get_data_ptr() [2/2]

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

Definition at line 74 of file vec4.cc.

◆ operator==()

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

◆ to_vec3() [1/2]

vec3f eu::vec4f::to_vec3 ( ) const

Definition at line 60 of file vec4.cc.

◆ to_vec3() [2/2]

vec3f eu::vec4f::to_vec3 ( float  ww) const

asserts that the w component is what is expected

Definition at line 52 of file vec4.cc.

Member Data Documentation

◆ w

float eu::vec4f::w

Definition at line 18 of file vec4.h.

◆ x

float eu::vec4f::x

Definition at line 15 of file vec4.h.

◆ y

float eu::vec4f::y

Definition at line 16 of file vec4.h.

◆ z

float eu::vec4f::z

Definition at line 17 of file vec4.h.


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