aboutsummaryrefslogtreecommitdiffstats
path: root/include/core/SkPoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkPoint.h')
-rw-r--r--include/core/SkPoint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h
index c89f080..52dbd51 100644
--- a/include/core/SkPoint.h
+++ b/include/core/SkPoint.h
@@ -149,6 +149,9 @@ struct SK_API SkPoint {
return pt;
}
+ SkScalar x() const { return fX; }
+ SkScalar y() const { return fY; }
+
/** Set the point's X and Y coordinates */
void set(SkScalar x, SkScalar y) { fX = x; fY = y; }