ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::Point Struct Reference

Simple class for handling both 2D position and size. More...

#include <rect.h>

List of all members.

Public Member Functions

 Point ()
 Point (int16 x1, int16 y1)
bool operator== (const Point &p) const
bool operator!= (const Point &p) const
Point operator+ (const Point &delta) const
Point operator- (const Point &delta) const
void operator+= (const Point &delta)
void operator-= (const Point &delta)
uint sqrDist (const Point &p) const
 Return the square of the distance between this point and the point p.

Public Attributes

int16 x
 The horizontal part of the point.
int16 y
 The vertical part of the point.

Detailed Description

Simple class for handling both 2D position and size.

Definition at line 37 of file rect.h.


Constructor & Destructor Documentation

Common::Point::Point (  )  [inline]

Definition at line 41 of file rect.h.

Common::Point::Point ( int16  x1,
int16  y1 
) [inline]

Definition at line 42 of file rect.h.


Member Function Documentation

bool Common::Point::operator!= ( const Point p  )  const [inline]

Definition at line 44 of file rect.h.

Point Common::Point::operator+ ( const Point delta  )  const [inline]

Definition at line 45 of file rect.h.

void Common::Point::operator+= ( const Point delta  )  [inline]

Definition at line 48 of file rect.h.

Point Common::Point::operator- ( const Point delta  )  const [inline]

Definition at line 46 of file rect.h.

void Common::Point::operator-= ( const Point delta  )  [inline]

Definition at line 53 of file rect.h.

bool Common::Point::operator== ( const Point p  )  const [inline]

Definition at line 43 of file rect.h.

uint Common::Point::sqrDist ( const Point p  )  const [inline]

Return the square of the distance between this point and the point p.

Parameters:
p the other point
Returns:
the distance between this and p

Definition at line 64 of file rect.h.


Member Data Documentation

The horizontal part of the point.

Definition at line 38 of file rect.h.

The vertical part of the point.

Definition at line 39 of file rect.h.


The documentation for this struct was generated from the following file:


Generated on Sat Sep 21 2019 05:03:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge