SDL++
C++wrapperfortheSDLlibrary.

sdl::misc::Coordinate< T > Struct Template Reference

Represents a 2 dimensional coordinate. More...

#include <Coordinate.h>

Collaboration diagram for sdl::misc::Coordinate< T >:

List of all members.

Public Member Functions

 Coordinate (T x, T y)
x () const
y () const

Detailed Description

template<typename T>
struct sdl::misc::Coordinate< T >

Represents a 2 dimensional coordinate.

Template Parameters:
TThe type of the coordinate elements.

Definition at line 33 of file Coordinate.h.


Constructor & Destructor Documentation

template<typename T>
sdl::misc::Coordinate< T >::Coordinate ( x,
y 
) [inline]

Constructs a Coordinate from a x and a y.

Parameters:
xThe x coordinate.
yThe y coordinate.

Definition at line 40 of file Coordinate.h.


Member Function Documentation

template<typename T>
T sdl::misc::Coordinate< T >::x ( ) const [inline]

Returns the x coordinate.

Returns:
The x coordinate.

Definition at line 47 of file Coordinate.h.

template<typename T>
T sdl::misc::Coordinate< T >::y ( ) const [inline]

Returns the y coordinate.

Returns:
The y coordinate.

Definition at line 54 of file Coordinate.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs