GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SDLmm::SPoint(3) FreeBSD Library Functions Manual SDLmm::SPoint(3)

SDLmm::SPoint - A small usefull class representing a point in 2 dimensional space.

#include <sdlmm_spoint.h>


SPoint ()
Default constructor which creates an empty SPoint (xy variables set to zero). SPoint (const SPoint &point)
This is the copy constructor. Simply initializes the value of an SPoint to that of another SPoint. SPoint (Sint16 nx, Sint16 ny)
Constructor which initializes the class from integer values. SPoint& operator= (const SPoint &point)
Set the value of an SPoint to that of an existing SPoint . bool operator== (const SPoint &point) const
Compare two points for equality. bool operator< (const SPoint &point) const
bool operator<= (const SPoint &point) const
bool operator> (const SPoint &point) const
bool operator>= (const SPoint &point) const
SPoint& operator+= (const SPoint &point)
SPoint& operator-= (const SPoint &point)
SPoint operator+ (const SPoint &point) const
SPoint operator- (const SPoint &point) const
SPoint& operator *= (Sint16 scalar)
SPoint& operator/= (Sint16 scalar)
SPoint operator * (Sint16 scalar) const
SPoint operator/ (Sint16 scalar) const


Sint16 x
Sint16 y

A small usefull class representing a point in 2 dimensional space.

Author:
Adam Gates

Default constructor which creates an empty SPoint (xy variables set to zero).

This is the copy constructor. Simply initializes the value of an SPoint to that of another SPoint.

Parameters:

point
an existing SPoint object.

Constructor which initializes the class from integer values.

Parameters:

nx, horizontal
position
ny, vertical
position

Returns:
true if both point.x and point.y is larger than x and y in this point.

Returns:
true if both point.x and point.y is larger than or equal to x and y in this point.

Set the value of an SPoint to that of an existing SPoint.

Compare two points for equality.

Returns:
true if coordinates are identical in both points.

Returns:
true if both point.x and point.y is smaller than x and y in this point.

Returns:
true if both point.x and point.y is smaller than or equal to x and y in this point.

Generated automatically by Doxygen for SDLmm from the source code.
16 Jul 2001 SDLmm

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.