return x[pt + (poly == 0 ? 0 : polyEnd[poly - 1] + 1)];
}
+int GlyphPoints::GetNextX(uint16 poly, uint16 pt)
+{
+ return GetX(poly, GetNext(poly, pt));
+}
+
int GlyphPoints::GetY(uint16 poly, uint16 pt)
{
if (pt >= GetNumPoints(poly))
return y[pt + (poly == 0 ? 0 : polyEnd[poly - 1] + 1)];
}
+int GlyphPoints::GetNextY(uint16 poly, uint16 pt)
+{
+ return GetY(poly, GetNext(poly, pt));
+}
+
+IPoint GlyphPoints::GetPoint(uint16 poly, uint16 pt)
+{
+ return IPoint(GetX(poly, pt), GetY(poly, pt));
+}
+
bool GlyphPoints::GetOnCurve(uint16 poly, uint16 pt)
{
if (pt >= GetNumPoints(poly))
return onCurve[pt + (poly == 0 ? 0 : polyEnd[poly - 1] + 1)];
}
+bool GlyphPoints::GetPrevOnCurve(uint16 poly, uint16 pt)
+{
+ return GetOnCurve(poly, GetPrev(poly, pt));
+}
+
+bool GlyphPoints::GetNextOnCurve(uint16 poly, uint16 pt)
+{
+ return GetOnCurve(poly, GetNext(poly, pt));
+}
+
uint16 GlyphPoints::GetPolyEnd(uint16 poly)
{
if (poly >= numPolys)