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

#include <Geometry.h>

List of all members.

Public Member Functions

 Vec2 ()
 Vec2 (int ix, int iy)
 Vec2 (float ix, float iy)
 Vec2 (double ix, double iy)
 operator void * () const
int operator== (const Vec2 &p) const
int operator!= (const Vec2 &p) const
Vec2 operator+ (const Vec2 &p) const
Vec2 operator- (const Vec2 &p) const
Vec2 operator- () const
Vec2 operator* (float s) const
Vec2 operator/ (float s) const
float operator* (const Vec2 &p) const
Vec2operator= (const Vec2 &p)
Vec2operator+= (const Vec2 &p)
Vec2operator-= (const Vec2 &p)
Vec2operator*= (float s)
Vec2operator/= (float s)
float length () const
float Normalize ()
float dot (const Vec2 &p) const
Vec2 normal () const

Static Public Member Functions

static const char * TYPENAME ()

Public Attributes

float u
float v
float x
float y

Detailed Description

Definition at line 39 of file M3DS.cpp.


Constructor & Destructor Documentation

Vec2::Vec2 ( )
inline

Definition at line 115 of file Geometry.h.

Vec2::Vec2 ( int  ix,
int  iy 
)
inline

Definition at line 116 of file Geometry.h.

Vec2::Vec2 ( float  ix,
float  iy 
)
inline

Definition at line 117 of file Geometry.h.

Vec2::Vec2 ( double  ix,
double  iy 
)
inline

Definition at line 118 of file Geometry.h.


Member Function Documentation

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

Definition at line 138 of file Geometry.h.

float Vec2::length ( ) const
inline

Definition at line 136 of file Geometry.h.

Vec2 Vec2::normal ( ) const
inline

Definition at line 139 of file Geometry.h.

float Vec2::Normalize ( )

Definition at line 118 of file Geometry.cpp.

Vec2::operator void * ( ) const
inline

Definition at line 120 of file Geometry.h.

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

Definition at line 122 of file Geometry.h.

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

Definition at line 126 of file Geometry.h.

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

Definition at line 128 of file Geometry.h.

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

Definition at line 133 of file Geometry.h.

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

Definition at line 123 of file Geometry.h.

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

Definition at line 131 of file Geometry.h.

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

Definition at line 124 of file Geometry.h.

Vec2 Vec2::operator- ( ) const
inline

Definition at line 125 of file Geometry.h.

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

Definition at line 132 of file Geometry.h.

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

Definition at line 127 of file Geometry.h.

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

Definition at line 134 of file Geometry.h.

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

Definition at line 130 of file Geometry.h.

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

Definition at line 121 of file Geometry.h.

static const char* Vec2::TYPENAME ( )
inlinestatic

Definition at line 113 of file Geometry.h.


Member Data Documentation

float Vec2::u

Definition at line 41 of file M3DS.cpp.

float Vec2::v

Definition at line 41 of file M3DS.cpp.

float Vec2::x

Definition at line 141 of file Geometry.h.

float Vec2::y

Definition at line 141 of file Geometry.h.


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