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

CascadePoint Class Reference

represents a point using cartesian coordinates More...

#include <cascade/graphics/CascadePoint.h>

Inheritance diagram for CascadePoint:

CascadeObject List of all members.

Public Member Functions

 CascadePoint ()
 CascadePoint (s32 xx, s32 yy)
 CascadePoint (const CascadePoint &point)

Public Attributes

s32 x
s32 y

Detailed Description

represents a point using cartesian coordinates

Skip the description

CascadePoint represents 2d point descibed as (x, y), where (0, 0) is defined as the top-left of the coordinate-space. In other words, for the purposes of the graphics classes, point (0, 0) means the top- left most point on a CascadeBitmap or CascadeScreen.


class CascadePoint


Constructor & Destructor Documentation

CascadePoint::CascadePoint  )  [inline]
 

default constructor

The default constructor for CascadePoint initializes the point to (0, 0)

CascadePoint::CascadePoint s32  xx,
s32  yy
[inline]
 

coordinate constructor

This constructor sets the point from the x and y coordinates passed in.

Parameters:
xx the x coordinate of the point
yy the y coordinate of the point

CascadePoint::CascadePoint const CascadePoint point  )  [inline]
 

copy constructor

This copy constructor copies the point from the point passed in.

Parameters:
point the point to copy


Member Data Documentation

s32 CascadePoint::x
 

the x coordinate of the point

x stores the x coordinate of the point

s32 CascadePoint::y
 

the y coordinate of the point

y stores the y coordinate of the point


The documentation for this class was generated from the following file:
Generated on Sun Jul 24 14:27:20 2005 for Cascade Library by  doxygen 1.4.1