#include <sdlmm_spoint.h>
Public Methods | |
SPoint () | |
Default constructor which creates an empty SPoint (xy variables set to zero). More... | |
SPoint (const SPoint &point) | |
This is the copy constructor. Simply initializes the value of an SPoint to that of another SPoint. More... | |
SPoint (Sint16 nx, Sint16 ny) | |
Constructor which initializes the class from integer values. More... | |
SPoint& | operator= (const SPoint &point) |
Set the value of an SPoint to that of an existing SPoint. More... | |
bool | operator== (const SPoint &point) const |
Compare two points for equality. More... | |
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 |
Public Attributes | |
Sint16 | x |
Sint16 | y |
|
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.
|
|
Constructor which initializes the class from integer values.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the value of an SPoint to that of an existing SPoint.
|
|
Compare two points for equality.
|
|
|
|
|
|
|
|
|
Documentation automatically generated by ![]() |
Project hosted at |