HPS::GlyphPoint Class Reference

#include <hps.h>

Public Member Functions

bool Equals (GlyphPoint const &in_that) const
 
GlyphPoint ()
 Default constructor.
 
 GlyphPoint (sbyte in_x, sbyte in_y)
 
bool operator!= (GlyphPoint const &in_that) const
 
bool operator== (GlyphPoint const &in_that) const
 

Public Attributes

sbyte x
 
sbyte y
 

Detailed Description

The GlyphPoint class is a point that is used in the definition of glyphs. It is a 2d point with x, y restricted to [-128, 127].

Constructor & Destructor Documentation

◆ GlyphPoint()

HPS::GlyphPoint::GlyphPoint ( sbyte  in_x,
sbyte  in_y 
)

Construct a new GlyphPoint from an (x, y) pair.

Parameters
in_xThe x location of the point.
in_yThe y location of the point.

Member Function Documentation

◆ Equals()

bool HPS::GlyphPoint::Equals ( GlyphPoint const &  in_that) const
inline

This function is used to check an object for equivalence to this.

Parameters
in_thatThe object to compare to this.
Returns
true if the objects are equivalent, false otherwise.

◆ operator!=()

bool HPS::GlyphPoint::operator!= ( GlyphPoint const &  in_that) const
inline

This function is used to check an object for equivalence to this.

Parameters
in_thatThe object to compare to this.
Returns
true if the objects are not equivalent, false otherwise.

◆ operator==()

bool HPS::GlyphPoint::operator== ( GlyphPoint const &  in_that) const
inline

This function is used to check an object for equivalence to this.

Parameters
in_thatThe object to compare to this.
Returns
true if the objects are equivalent, false otherwise.

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