supertux
Public Member Functions | Public Attributes | List of all members
Vector Class Referencefinal

Simple two dimensional vector. More...

#include <vector.hpp>

Public Member Functions

 Vector (float nx, float ny)
 
 Vector (const Vector &other)
 
bool operator== (const Vector &other) const
 
bool operator!= (const Vector &other) const
 
Vectoroperator= (const Vector &other)
 
Vector operator+ (const Vector &other) const
 
Vector operator- (const Vector &other) const
 
Vector operator* (float s) const
 
Vector operator/ (float s) const
 
Vector operator- () const
 
const Vectoroperator+= (const Vector &other)
 
const Vectoroperator-= (const Vector &other)
 
const Vectoroperator*= (float val)
 
const Vectoroperator/= (float val)
 
float operator* (const Vector &other) const
 Scalar product of 2 vectors.
 
float norm () const
 
Vector unit () const
 
Vector floor () const
 

Public Attributes

float x
 
float y
 

Detailed Description

Simple two dimensional vector.


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