Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Vec3 Struct Reference

#include <Geometry.h>

List of all members.

Public Member Functions

 Vec3 ()
 Vec3 (int ix, int iy, int iz)
 Vec3 (float ix, float iy, float iz)
 Vec3 (double ix, double iy, double iz)
 operator void * () const
int operator== (const Vec3 &p) const
int operator!= (const Vec3 &p) const
Vec3 operator+ (const Vec3 &p) const
Vec3 operator- (const Vec3 &p) const
Vec3 operator- () const
Vec3 operator* (float s) const
Vec3 operator/ (float s) const
float operator* (const Vec3 &p) const
Vec3 operator* (const Matrix &) const
Vec3operator= (const Vec3 &p)
Vec3operator+= (const Vec3 &p)
Vec3operator-= (const Vec3 &p)
Vec3operator*= (float s)
Vec3operator/= (float s)
void SwapYZ ()
float length () const
float Normalize ()
float dot (const Vec3 &p) const
Vec3 cross (const Vec3 &v) const

Static Public Member Functions

static const char * TYPENAME ()

Public Attributes

float x
float y
float z

Detailed Description

Definition at line 146 of file Geometry.h.


Constructor & Destructor Documentation

Vec3::Vec3 ( )
inline

Definition at line 150 of file Geometry.h.

Vec3::Vec3 ( int  ix,
int  iy,
int  iz 
)
inline

Definition at line 151 of file Geometry.h.

Vec3::Vec3 ( float  ix,
float  iy,
float  iz 
)
inline

Definition at line 152 of file Geometry.h.

Vec3::Vec3 ( double  ix,
double  iy,
double  iz 
)
inline

Definition at line 153 of file Geometry.h.


Member Function Documentation

Vec3 Vec3::cross ( const Vec3 v) const
inline

Definition at line 177 of file Geometry.h.

float Vec3::dot ( const Vec3 p) const
inline

Definition at line 176 of file Geometry.h.

float Vec3::length ( ) const
inline

Definition at line 173 of file Geometry.h.

float Vec3::Normalize ( )

Definition at line 135 of file Geometry.cpp.

Vec3::operator void * ( ) const
inline

Definition at line 155 of file Geometry.h.

int Vec3::operator!= ( const Vec3 p) const
inline

Definition at line 157 of file Geometry.h.

Vec3 Vec3::operator* ( float  s) const
inline

Definition at line 161 of file Geometry.h.

float Vec3::operator* ( const Vec3 p) const
inline

Definition at line 163 of file Geometry.h.

Vec3 Vec3::operator* ( const Matrix m) const

Definition at line 153 of file Geometry.cpp.

Vec3& Vec3::operator*= ( float  s)
inline

Definition at line 169 of file Geometry.h.

Vec3 Vec3::operator+ ( const Vec3 p) const
inline

Definition at line 158 of file Geometry.h.

Vec3& Vec3::operator+= ( const Vec3 p)
inline

Definition at line 167 of file Geometry.h.

Vec3 Vec3::operator- ( const Vec3 p) const
inline

Definition at line 159 of file Geometry.h.

Vec3 Vec3::operator- ( ) const
inline

Definition at line 160 of file Geometry.h.

Vec3& Vec3::operator-= ( const Vec3 p)
inline

Definition at line 168 of file Geometry.h.

Vec3 Vec3::operator/ ( float  s) const
inline

Definition at line 162 of file Geometry.h.

Vec3& Vec3::operator/= ( float  s)
inline

Definition at line 170 of file Geometry.h.

Vec3& Vec3::operator= ( const Vec3 p)
inline

Definition at line 166 of file Geometry.h.

int Vec3::operator== ( const Vec3 p) const
inline

Definition at line 156 of file Geometry.h.

void Vec3::SwapYZ ( )
inline

Definition at line 172 of file Geometry.h.

static const char* Vec3::TYPENAME ( )
inlinestatic

Definition at line 148 of file Geometry.h.


Member Data Documentation

float Vec3::x

Definition at line 181 of file Geometry.h.

float Vec3::y

Definition at line 181 of file Geometry.h.

float Vec3::z

Definition at line 181 of file Geometry.h.


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