diff options
Diffstat (limited to 'include/core/SkPoint.h')
-rw-r--r-- | include/core/SkPoint.h | 3 |
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; } |