Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Geometry::Vec2< Real > Class Template Reference

Represents a vector of dimension 2 with Real coordinates. More...

#include <geom.h>

Inheritance diagram for Geometry::Vec2< Real >:

Geometry::Vec< 2, Real > List of all members.

Public Types

typedef Vec< 2, Real >::value_type value_type
 Used type.


Public Methods

 Vec2 (const value_type x, const value_type y)
 2D constructor.

 Vec2 ()
 Classical constructor.

 Vec2 (const value_type tab[2])
 Classical constructor.

 Vec2 (const std::vector< value_type > &tab)
 Classical constructor.

 Vec2 (const Vec< 2, Real > &v)
 Classical constructor.

const value_typex () const
 2D access.

value_typex ()
 2D access.

const value_typey () const
 2D access.

value_typey ()
 2D access.


Detailed Description

template<typename Real>
class Geometry::Vec2< Real >

Represents a vector of dimension 2 with Real coordinates.


Member Typedef Documentation

template<typename Real>
typedef Vec<2,Real>::value_type Geometry::Vec2< Real >::value_type
 

Used type.

Reimplemented from Geometry::Vec< 2, Real >.


Constructor & Destructor Documentation

template<typename Real>
Geometry::Vec2< Real >::Vec2   [inline]
 

Classical constructor.

template<typename Real>
Geometry::Vec2< Real >::Vec2 const value_type    tab[2] [inline, explicit]
 

Classical constructor.

template<typename Real>
Geometry::Vec2< Real >::Vec2 const std::vector< value_type > &    tab [inline, explicit]
 

Classical constructor.

template<typename Real>
Geometry::Vec2< Real >::Vec2 const Vec< 2, Real > &    v [inline]
 

Classical constructor.

template<typename Real>
Geometry::Vec2< Real >::Vec2 const value_type    x,
const value_type    y
[inline]
 

2D constructor.


Member Function Documentation

template<typename Real>
Vec2< Real >::value_type & Geometry::Vec2< Real >::x   [inline]
 

2D access.

template<typename Real>
const Vec2< Real >::value_type & Geometry::Vec2< Real >::x   [inline]
 

2D access.

template<typename Real>
Vec2< Real >::value_type & Geometry::Vec2< Real >::y   [inline]
 

2D access.

template<typename Real>
const Vec2< Real >::value_type & Geometry::Vec2< Real >::y   [inline]
 

2D access.


The documentation for this class was generated from the following file:
Generated on Fri Aug 20 15:03:53 2004 by doxygen1.2.18