Public Member Functions

override bool Equals (object obj)
 
bool Equals (GlyphPoint p)
 
override int GetHashCode ()
 
 GlyphPoint (GlyphPoint gp)
 
 GlyphPoint (sbyte new_x, sbyte new_y)
 

Static Public Member Functions

static bool operator!= (GlyphPoint p1, GlyphPoint p2)
 
static bool operator== (GlyphPoint p1, GlyphPoint p2)
 

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 ( GlyphPoint  gp)
inline

Construct a new GlyphPoint from the GlyphPoint parameter.

Parameters
gpThe GlyphPoint to use to build this object.

◆ GlyphPoint() [2/2]

HPS.GlyphPoint.GlyphPoint ( sbyte  new_x,
sbyte  new_y 
)
inline

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

Parameters
new_xThe x location of the point.
new_yThe y location of the point.

Member Function Documentation

◆ Equals() [1/2]

override bool HPS.GlyphPoint.Equals ( object  obj)
inline

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

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

◆ Equals() [2/2]

bool HPS.GlyphPoint.Equals ( GlyphPoint  p)
inline

This function is used to check a GlyphPoint object for equivalence to this.

Parameters
pThe GlyphPoint to compare to this.
Returns
true if the objects are equivalent, false otherwise.

◆ operator!=()

static bool HPS.GlyphPoint.operator!= ( GlyphPoint  p1,
GlyphPoint  p2 
)
inlinestatic

Compares two GlyphPoint objects.

Parameters
p1The object to compare to parameter p2.
p2The object to compare to parameter p1.
Returns
true if the objects are not equivalent, false otherwise.

◆ operator==()

static bool HPS.GlyphPoint.operator== ( GlyphPoint  p1,
GlyphPoint  p2 
)
inlinestatic

Compares two GlyphPoint objects.

Parameters
p1The object to compare to parameter p2.
p2The object to compare to parameter p1.
Returns
true if the objects are equivalent, false otherwise.

The documentation for this struct was generated from the following file:
  • internals/hps_core/source/cs/HPS.GlyphPoint.cs