aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPoint.h
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-02-27 10:22:04 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-27 16:37:39 +0000
commit75959391681495896570e7bf8d7f9effdd1306f3 (patch)
tree594062af925906eafd1fd84f788c37fba7e82ac2 /include/core/SkPoint.h
parent1991f5502edef073a005d6efbbc710d8c72f1a8a (diff)
updated includes
update includes to latest bookmaker docs TBR=reed@google.com Bug: skia:6898 Change-Id: If42ab25f98a0f0d8b410ae30ca1cd641e19ce89f Reviewed-on: https://skia-review.googlesource.com/107021 Commit-Queue: Cary Clark <caryclark@skia.org> Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'include/core/SkPoint.h')
-rw-r--r--include/core/SkPoint.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h
index 2d3a938693..f05a08c99d 100644
--- a/include/core/SkPoint.h
+++ b/include/core/SkPoint.h
@@ -13,12 +13,12 @@
#include "../private/SkSafe32.h"
/** \struct SkIPoint16
- SkIPoint holds two 16 bit integer coordinates
+ SkIPoint16 holds two 16 bit integer coordinates.
*/
struct SkIPoint16 {
- int16_t fX; //!< x-axis value used by SkIPoint16.
+ int16_t fX; //!< x-axis value used by SkIPoint16
- int16_t fY; //!< y-axis value used by SkIPoint16.
+ int16_t fY; //!< y-axis value used by SkIPoint16
/** Sets fX to x, fY to y. If SK_DEBUG is defined, asserts
if x or y does not fit in 16 bits.
@@ -58,7 +58,7 @@ struct SkIPoint;
typedef SkIPoint SkIVector;
/** \struct SkIPoint
- SkIPoint holds two 32 bit integer coordinates
+ SkIPoint holds two 32 bit integer coordinates.
*/
struct SkIPoint {
int32_t fX; //!< x-axis value used by SkIPoint.
@@ -189,6 +189,7 @@ struct SkPoint;
typedef SkPoint SkVector;
/** \struct SkPoint
+ SkPoint holds two 32 bit floating point coordinates.
*/
struct SK_API SkPoint {
@@ -553,9 +554,9 @@ struct SK_API SkPoint {
/** Returns the cross product of vector a and vector b.
- a and b form three-dimensional vectors with z equal to zero. The cross product
- is a three-dimensional vector with x and y equal to zero. The cross product z
- term equals the returned value.
+ a and b form three-dimensional vectors with z-axis value equal to zero. The
+ cross product is a three-dimensional vector with x-axis and y-axis values equal
+ to zero. The cross product z-axis component is returned.
@param a left side of cross product
@param b right side of cross product
@@ -567,9 +568,9 @@ struct SK_API SkPoint {
/** Returns the cross product of vector and vec.
- Vector and vec form three-dimensional vectors with z equal to zero. The
- cross product is a three-dimensional vector with x and y equal to zero.
- The cross product z term equals the returned value.
+ Vector and vec form three-dimensional vectors with z-axis value equal to zero.
+ The cross product is a three-dimensional vector with x-axis and y-axis values
+ equal to zero. The cross product z-axis component is returned.
@param vec right side of cross product
@return area spanned by vectors signed by angle direction