CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csPoint Struct Reference
[Geometry utilities]

A 2D point object. More...

#include <cspoint.h>

List of all members.

Public Methods

 csPoint ()
 Constructor: initialize the object with zeros.

 csPoint (int iX, int iY)
 Constructor: initialize the object with given values.

 csPoint (const csPoint &v)
 Constructor: initialize the object by copying.

void Set (int iX, int iY)
 Set the coordinates of this point.

void Set (csPoint &v)
 Set the coordinates of this point from another point.


Public Attributes

int x
 The coordinates of the point.

int y
 The coordinates of the point.


Detailed Description

A 2D point object.

Definition at line 32 of file cspoint.h.


Constructor & Destructor Documentation

csPoint::csPoint   [inline]
 

Constructor: initialize the object with zeros.

Definition at line 38 of file cspoint.h.

References x, and y.

csPoint::csPoint int    iX,
int    iY
[inline]
 

Constructor: initialize the object with given values.

Definition at line 41 of file cspoint.h.

References x, and y.

csPoint::csPoint const csPoint &    v [inline]
 

Constructor: initialize the object by copying.

Definition at line 44 of file cspoint.h.

References x, and y.


Member Function Documentation

void csPoint::Set csPoint &    v [inline]
 

Set the coordinates of this point from another point.

Definition at line 50 of file cspoint.h.

References x, and y.

void csPoint::Set int    iX,
int    iY
[inline]
 

Set the coordinates of this point.

Definition at line 47 of file cspoint.h.

References x, and y.


Member Data Documentation

int csPoint::x
 

The coordinates of the point.

Definition at line 35 of file cspoint.h.

Referenced by csPoint(), and Set().

int csPoint::y
 

The coordinates of the point.

Definition at line 35 of file cspoint.h.

Referenced by csPoint(), and Set().


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18