Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::GlyphPoint Class Reference

The GlyphPoint class is a point that is used in the definition of glyphs. More...

#include <hps.h>

Collaboration diagram for HPS::GlyphPoint:

Public Member Functions

 GlyphPoint ()
 Default constructor. More...
 
 GlyphPoint (sbyte in_x, sbyte in_y)
 Construct a new GlyphPoint from an (x, y) pair. More...
 
bool Equals (GlyphPoint const &in_that) const
 This function is used to check an object for equivalence to this. More...
 
bool operator== (GlyphPoint const &in_that) const
 This function is used to check an object for equivalence to this. More...
 
bool operator!= (GlyphPoint const &in_that) const
 This function is used to check an object for equivalence to this. More...
 

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() [1/2]

HPS::GlyphPoint::GlyphPoint ( )

Default constructor.

◆ GlyphPoint() [2/2]

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.

Member Data Documentation

◆ x

sbyte HPS::GlyphPoint::x

◆ y

sbyte HPS::GlyphPoint::y

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