Include dependency graph for point.h:

Classes

class  pp::Point
 A 2 dimensional point with 0,0 being the upper-left starting coordinate. More...
class  pp::FloatPoint
 A 2 dimensional floating-point point with 0,0 being the upper-left starting coordinate. More...

Namespaces

namespace  pp

Functions

bool operator== (const pp::Point &lhs, const pp::Point &rhs)
bool operator!= (const pp::Point &lhs, const pp::Point &rhs)
bool operator== (const pp::FloatPoint &lhs, const pp::FloatPoint &rhs)
bool operator!= (const pp::FloatPoint &lhs, const pp::FloatPoint &rhs)

Detailed Description

This file defines the API to create a 2 dimensional point.


Function Documentation

bool operator!=(const pp::Pointlhs,
const pp::Pointrhs 
) [inline]

Determines whether two Points have different coordinates.

Parameters:
[in]lhsThe Point on the left-hand side of the equation.
[in]rhsThe Point on the right-hand side of the equation.
Returns:
true if the coordinates of lhs are equal to the coordinates of rhs, otherwise false.
bool operator!=(const pp::FloatPointlhs,
const pp::FloatPointrhs 
) [inline]

Determines whether two Points have different coordinates.

Parameters:
[in]lhsThe Point on the left-hand side of the equation.
[in]rhsThe Point on the right-hand side of the equation.
Returns:
true if the coordinates of lhs are equal to the coordinates of rhs, otherwise false.
bool operator==(const pp::Pointlhs,
const pp::Pointrhs 
) [inline]

Determines whether the x and y values of two Points are equal.

Parameters:
[in]lhsThe Point on the left-hand side of the equation.
[in]rhsThe Point on the right-hand side of the equation.
Returns:
true if they are equal, false if unequal.
bool operator==(const pp::FloatPointlhs,
const pp::FloatPointrhs 
) [inline]

Determines whether the x and y values of two FloatPoints are equal.

Parameters:
[in]lhsThe Point on the left-hand side of the equation.
[in]rhsThe Point on the right-hand side of the equation.
Returns:
true if they are equal, false if unequal.
This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.