Simulant  21.06-50
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Public Attributes | Friends | List of all members
smlt::Vec4 Struct Reference

Public Member Functions

 Vec4 (float x, float y, float z, float w)
 
 Vec4 (const Vec3 &v, float w)
 
bool equals (const Vec4 &rhs) const
 
bool operator== (const Vec4 &rhs) const
 
bool operator!= (const Vec4 &rhs) const
 
Vec4 operator- (const Vec4 &rhs) const
 
Vec4 operator* (const float &rhs) const
 
float length () const
 
float length_squared () const
 
void normalize ()
 
const smlt::Vec4 normalized () const
 
Vec4 operator+ (const Vec4 &rhs) const
 
Vec3 xyz () const
 
Vec2 xy () const
 

Public Attributes

float x
 
float y
 
float z
 
float w
 

Friends

struct Vec3
 
struct Mat4
 

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