Lines Matching refs:fY

29     int32_t fY; //!< y-axis value
31 /** Sets fX to x, fY to y.
49 @return fY
51 constexpr int32_t y() const { return fY; }
53 /** Returns true if fX and fY are both zero.
55 @return true if fX is zero and fY is zero
57 bool isZero() const { return (fX | fY) == 0; }
59 /** Sets fX to x and fY to y.
62 @param y new value for fY
66 fY = y;
69 /** Returns SkIPoint changing the signs of fX and fY.
71 @return SkIPoint as (-fX, -fY)
74 return {-fX, -fY};
77 /** Offsets SkIPoint by ivector v. Sets SkIPoint to (fX + v.fX, fY + v.fY).
83 fY = Sk32_sat_add(fY, v.fY);
86 /** Subtracts ivector v from SkIPoint. Sets SkIPoint to: (fX - v.fX, fY - v.fY).
92 fY = Sk32_sat_sub(fY, v.fY);
98 @param y value compared with fY
102 return fX == x && fY == y;
109 @return true if a.fX == b.fX and a.fY == b.fY
112 return a.fX == b.fX && a.fY == b.fY;
119 @return true if a.fX != b.fX or a.fY != b.fY
122 return a.fX != b.fX || a.fY != b.fY;
125 /** Returns ivector from b to a; computed as (a.fX - b.fX, a.fY - b.fY).
134 return { Sk32_sat_sub(a.fX, b.fX), Sk32_sat_sub(a.fY, b.fY) };
138 (a.fX + b.fX, a.fY + b.fY).
148 return { Sk32_sat_add(a.fX, b.fX), Sk32_sat_add(a.fY, b.fY) };
164 SkScalar fY; //!< y-axis value
173 /** Sets fX to x, fY to y. Used both to set SkPoint and vector.
191 @return fY
193 constexpr SkScalar y() const { return fY; }
195 /** Returns true if fX and fY are both zero.
197 @return true if fX is zero and fY is zero
199 bool isZero() const { return (0 == fX) & (0 == fY); }
201 /** Sets fX to x and fY to y.
204 @param y new value for fY
208 fY = y;
211 /** Sets fX to x and fY to y, promoting integers to SkScalar values.
213 Assigning a large integer value directly to fX or fY may cause a compiler
218 @param y new value for fY
222 fY = SkIntToScalar(y);
225 /** Sets fX to p.fX and fY to p.fY, promoting integers to SkScalar values.
227 Assigning an SkIPoint containing a large integer value directly to fX or fY may
229 This safely casts p.fX and p.fY to avoid the error.
235 fY = SkIntToScalar(p.fY);
238 /** Sets fX to absolute value of pt.fX; and fY to absolute value of pt.fY.
240 @param pt members providing magnitude for fX and fY
244 fY = SkScalarAbs(pt.fY);
254 Offset(points, count, offset.fX, offset.fY);
262 @param dy added to fY in points
273 @param dy added to fY
277 fY += dy;
282 sqrt(fX * fX + fY * fY)
288 SkScalar length() const { return SkPoint::Length(fX, fY); }
292 sqrt(fX * fX + fY * fY)
300 /** Scales (fX, fY) so that length() returns one, while preserving ratio of fX to fY,
311 (fX, fY) is proportional to (x, y). If (x, y) length is nearly zero,
315 @param y proportional value for fY
338 @param y proportional value for fY
361 /** Changes the sign of fX and fY.
365 fY = -fY;
368 /** Returns SkPoint changing the signs of fX and fY.
370 @return SkPoint as (-fX, -fY)
373 return {-fX, -fY};
376 /** Adds vector v to SkPoint. Sets SkPoint to: (fX + v.fX, fY + v.fY).
382 fY += v.fY;
385 /** Subtracts vector v from SkPoint. Sets SkPoint to: (fX - v.fX, fY - v.fY).
391 fY -= v.fY;
397 @return SkPoint as (fX * scale, fY * scale)
400 return {fX * scale, fY * scale};
403 /** Multiplies SkPoint by scale. Sets SkPoint to: (fX * scale, fY * scale).
410 fY *= scale;
414 /** Returns true if both fX and fY are measurable values.
421 accum *= fY;
434 @param y value compared with fY
438 return fX == x && fY == y;
445 @return true if a.fX == b.fX and a.fY == b.fY
448 return a.fX == b.fX && a.fY == b.fY;
455 @return true if a.fX != b.fX or a.fY != b.fY
458 return a.fX != b.fX || a.fY != b.fY;
461 /** Returns vector from b to a, computed as (a.fX - b.fX, a.fY - b.fY).
471 return {a.fX - b.fX, a.fY - b.fY};
475 (a.fX + b.fX, a.fY + b.fY).
485 return {a.fX + b.fX, a.fY + b.fY};
502 /** Scales (vec->fX, vec->fY) so that length() returns one, while preserving ratio of vec->fX
503 to vec->fY, if possible. If original length is nearly zero, sets vec to (0, 0) and returns
524 return Length(a.fX - b.fX, a.fY - b.fY);
534 return a.fX * b.fX + a.fY * b.fY;
548 return a.fX * b.fY - a.fY * b.fX;