Public Member Functions | Public Attributes

Vec2f Class Reference

A typical 2D vector class. More...

List of all members.

Public Member Functions

ozinline Vec2f (float _x, float _y)
ozinline Vec2f operator- () const
ozinline void operator-= (const Vec2f &_v)
ozinline void operator+= (const Vec2f &_v)
ozinline void operator*= (float _mul)
ozinline void operator*= (const Vec2f &_v)
ozinline void operator/= (float _div)
ozinline Vec2f operator- (const Vec2f &_v) const
ozinline Vec2f operator+ (const Vec2f &_v) const
ozinline Vec2f operator* (const Vec2f &_v) const
ozinline Vec2f operator* (float _m) const
ozinline Vec2f operator/ (const Vec2f &_v) const
ozinline Vec2f operator/ (float _d) const
ozinline Vec2f operator| (const Vec2f &_d) const
ozinline bool operator== (const Vec2f &_v) const
ozinline bool operator!= (const Vec2f &_v) const
ozinline float operator[] (int _i) const
ozinline float len () const
ozinline float lenSq () const
ozinline float dot (const Vec2f &_v) const
ozinline void normalize ()
ozinline void positive ()

Public Attributes

float x
float y

Detailed Description

A typical 2D vector class.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator