Lines Matching defs:SkIPoint
17 struct SkIPoint;
19 /** SkIVector provides an alternative name for SkIPoint. SkIVector and SkIPoint
22 typedef SkIPoint SkIVector;
24 /** \struct SkIPoint
25 SkIPoint holds two 32-bit integer coordinates.
27 struct SkIPoint {
33 @param x integer x-axis value of constructed SkIPoint
34 @param y integer y-axis value of constructed SkIPoint
35 @return SkIPoint (x, y)
37 static constexpr SkIPoint Make(int32_t x, int32_t y) {
41 /** Returns x-axis value of SkIPoint.
47 /** Returns y-axis value of SkIPoint.
69 /** Returns SkIPoint changing the signs of fX and fY.
71 @return SkIPoint as (-fX, -fY)
73 SkIPoint operator-() const {
77 /** Offsets SkIPoint by ivector v. Sets SkIPoint to (fX + v.fX, fY + v.fY).
86 /** Subtracts ivector v from SkIPoint. Sets SkIPoint to: (fX - v.fX, fY - v.fY).
95 /** Returns true if SkIPoint is equivalent to SkIPoint constructed from (x, y).
99 @return true if SkIPoint equals (x, y)
107 @param a SkIPoint to compare
108 @param b SkIPoint to compare
111 friend bool operator==(const SkIPoint& a, const SkIPoint& b) {
117 @param a SkIPoint to compare
118 @param b SkIPoint to compare
121 friend bool operator!=(const SkIPoint& a, const SkIPoint& b) {
129 @param a SkIPoint or ivector to subtract from
133 friend SkIVector operator-(const SkIPoint& a, const SkIPoint& b) {
137 /** Returns SkIPoint resulting from SkIPoint a offset by ivector b, computed as:
140 Can also be used to offset SkIPoint b by ivector a, returning SkIPoint.
143 @param a SkIPoint or ivector to add to
144 @param b SkIPoint or ivector to add
145 @return SkIPoint equal to a offset by b
147 friend SkIPoint operator+(const SkIPoint& a, const SkIVector& b) {
227 Assigning an SkIPoint containing a large integer value directly to fX or fY may
231 @param p SkIPoint members promoted to SkScalar
233 void iset(const SkIPoint& p) {