SourceForge.net Logo

Flatland::vec2 Struct Reference

#include <vector.hpp>

List of all members.

Detailed Description

Definition at line 18 of file vector.hpp.

Public Member Functions

 vec2 ()
 vec2 (float x, float y)
 vec2 (const float *f)
float length () const
vec2 rotate (float d) const
float squared_length () const
void normalize ()
vec2 rotate (vec2 v) const
vec2 hat () const
vec2 perp () const
vec2 flip () const
void snap (float epsilon)
vec2 operator- () const
vec2operator-= (vec2 v)
vec2operator+= (vec2 v)
vec2operator/= (float f)
vec2 operator+ (vec2 v) const
vec2 operator- (vec2 v) const
vec2 operator * (float f) const
vec2 operator/ (float f) const

Public Attributes

float x
float y

The documentation for this struct was generated from the following files:
Generated on Sat Jan 13 17:20:21 2007 for Flatland by doxygen 1.5.1