Fixed2dPoint Class Template Reference

Inheritance diagram for Fixed2dPoint:

FixedNdPoint< T, 2 > LocalArray List of all members.

Detailed Description

template<class T>
class Fixed2dPoint< T >

Author:
Bill Smart

Version:
1.0
Date:
June 2005

Definition at line 584 of file Geometry.H.

Public Member Functions

 Fixed2dPoint ()
 Fixed2dPoint (const T &value)
 Allocate a point and set the values of its elements to value.
 Fixed2dPoint (const T &x, const T &y)
 Allocate a point and set the values of its elements.
 Fixed2dPoint (const Fixed2dPoint< T > &point)
 ~Fixed2dPoint ()
Element access
T & x ()
 
Returns:
The first element of the point.

T & y ()
 
Returns:
The second element of the point.

const T & x () const
 
Returns:
The first element of the point.

const T & y () const
 
Returns:
The second element of the point.


Constructor & Destructor Documentation

Fixed2dPoint (  )  [inline]

Definition at line 586 of file Geometry.H.

Fixed2dPoint ( const T &  value  )  [inline]

Allocate a point and set the values of its elements to value.

Parameters:
[in] value The initial value of the point elements.

Definition at line 589 of file Geometry.H.

Fixed2dPoint ( const T &  x,
const T &  y 
) [inline]

Allocate a point and set the values of its elements.

Parameters:
[in] x The initial value of the first element.
[in] y The initial value of the second element.

Definition at line 593 of file Geometry.H.

References LocalArray::operator()().

Fixed2dPoint ( const Fixed2dPoint< T > &  point  )  [inline]

Definition at line 597 of file Geometry.H.

~Fixed2dPoint (  )  [inline]

Definition at line 598 of file Geometry.H.


Member Function Documentation

T& x (  )  [inline]

Returns:
The first element of the point.

Definition at line 605 of file Geometry.H.

References LocalArray::operator()().

T& y (  )  [inline]

Returns:
The second element of the point.

Definition at line 607 of file Geometry.H.

References LocalArray::operator()().

const T& x (  )  const [inline]

Returns:
The first element of the point.

Definition at line 610 of file Geometry.H.

References LocalArray::operator()().

const T& y (  )  const [inline]

Returns:
The second element of the point.

Definition at line 612 of file Geometry.H.

References LocalArray::operator()().


The documentation for this class was generated from the following file:
Generated on Thu Feb 1 15:31:55 2007 for WURDE by  doxygen 1.5.1