Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

Two-dimensional vectors.
[Primitive datatypes]

Representation of points and vectors in two-dimensional space: class TVector2 and class Vector2 . More...

Classes

class  TVector2< T >
 Generic Two-Dimensional Vector. More...

Global binary operator functions for two dimensional vectors.

template<typename T>
TVector2< T > operator * (const T &scalar, const TVector2< T > &vector) throw ()
 Multiply a vector with a scalar.
template<typename T>
std::istream & operator>> (std::istream &s, TVector2< T > &vector) throw ()
 Input stream.
template<typename T>
std::ostream & operator<< (std::ostream &s, const TVector2< T > &vector) throw ()

Typedefs

typedef TVector2< float > Vector2
 Default two-dimensional vector class.

Detailed Description

Representation of points and vectors in two-dimensional space: class TVector2 and class Vector2 .


Typedef Documentation

typedef TVector2<float> Vector2
 

Default two-dimensional vector class.

This is the class used in BALL kernel to represent points, coordinates.


Function Documentation

template<typename T>
TVector2< T > operator * const T &  scalar,
const TVector2< T > &  vector
throw ()
 

Multiply a vector with a scalar.

The symmetric case is a member of the vector class.

template<typename T>
std::istream & operator>> std::istream &  s,
TVector2< T > &  vector
throw ()
 

Input stream.