Home | History | Annotate | Download | only in core

Lines Matching refs:fY

20     int16_t fY; //!< y-axis value used by SkIPoint16.
22 /** Sets fX to x, fY to y. If SK_DEBUG is defined, asserts
41 @return fY
43 int16_t y() const { return fY; }
45 /** Sets fX to x and fY to y.
48 @param y new value for fY
52 fY = SkToS16(y);
65 int32_t fY; //!< y-axis value used by SkIPoint.
67 /** Sets fX to x, fY to y.
85 @return fY
87 int32_t y() const { return fY; }
89 /** Returns true if fX and fY are both zero.
91 @return true if fX is zero and fY is zero
93 bool isZero() const { return (fX | fY) == 0; }
95 /** Sets fX to x and fY to y.
98 @param y new value for fY
102 fY = y;
105 /** Returns SkIPoint changing the signs of fX and fY.
107 @return SkIPoint as (-fX, -fY)
110 return {-fX, -fY};
113 /** Offsets SkIPoint by ivector v. Sets SkIPoint to (fX + v.fX, fY + v.fY).
119 fY += v.fY;
122 /** Subtracts ivector v from SkIPoint. Sets SkIPoint to: (fX - v.fX, fY - v.fY).
128 fY -= v.fY;
134 @param y value compared with fY
138 return fX == x && fY == y;
145 @return true if a.fX == b.fX and a.fY == b.fY
148 return a.fX == b.fX && a.fY == b.fY;
155 @return true if a.fX != b.fX or a.fY != b.fY
158 return a.fX != b.fX || a.fY != b.fY;
161 /** Returns ivector from b to a; computed as (a.fX - b.fX, a.fY - b.fY).
170 return {a.fX - b.fX, a.fY - b.fY};
173 /** Returns SkIPoint resulting from SkIPoint a offset by ivector b, computed as: (a.fX + b.fX, a.fY + b.fY).
183 return {a.fX + b.fX, a.fY + b.fY};
202 SkScalar fY;
204 /** Sets fX to x, fY to y. Used both to set SkPoint and vector.
222 @return fY
224 SkScalar y() const { return fY; }
226 /** Returns true if fX and fY are both zero.
228 @return true if fX is zero and fY is zero
230 bool isZero() const { return (0 == fX) & (0 == fY); }
232 /** Sets fX to x and fY to y.
235 @param y new value for fY
239 fY = y;
242 /** Sets fX to x and fY to y, promoting integers to SkScalar values.
244 Assigning a large integer value directly to fX or fY may cause a compiler
249 @param y new value for fY
253 fY = SkIntToScalar(y);
256 /** Sets fX to p.fX and fY to p.fY, promoting integers to SkScalar values.
258 Assigning an SkIPoint containing a large integer value directly to fX or fY may
260 This safely casts p.fX and p.fY to avoid the error.
266 fY = SkIntToScalar(p.fY);
269 /** Sets fX to absolute value of pt.fX; and fY to absolute value of pt.fY.
271 @param pt members providing magnitude for fX and fY
275 fY = SkScalarAbs(pt.fY);
285 Offset(points, count, offset.fX, offset.fY);
293 @param dy added to fY in points
304 @param dy added to fY
308 fY += dy;
313 sqrt(fX * fX + fY * fY)
319 SkScalar length() const { return SkPoint::Length(fX, fY); }
323 sqrt(fX * fX + fY * fY)
331 /** Scales (fX, fY) so that length() returns one, while preserving ratio of fX to fY,
340 (fX, fY) is proportional to (x, y). If (x, y) length is nearly zero,
344 @param y proportional value for fY
363 @param y proportional value for fY
382 /** Changes the sign of fX and fY.
386 fY = -fY;
389 /** Returns SkPoint changing the signs of fX and fY.
391 @return SkPoint as (-fX, -fY)
394 return {-fX, -fY};
397 /** Adds vector v to SkPoint. Sets SkPoint to: (fX + v.fX, fY + v.fY).
403 fY += v.fY;
406 /** Subtracts vector v from SkPoint. Sets SkPoint to: (fX - v.fX, fY - v.fY).
412 fY -= v.fY;
418 @return SkPoint as (fX * scale, fY * scale)
421 return {fX * scale, fY * scale};
424 /** Multiplies SkPoint by scale. Sets SkPoint to: (fX * scale, fY * scale)
431 fY *= scale;
435 /** Returns true if both fX and fY are measurable values.
442 accum *= fY;
455 @param y value compared with fY
459 return fX == x && fY == y;
466 @return true if a.fX == b.fX and a.fY == b.fY
469 return a.fX == b.fX && a.fY == b.fY;
476 @return true if a.fX != b.fX or a.fY != b.fY
479 return a.fX != b.fX || a.fY != b.fY;
482 /** Returns vector from b to a, computed as (a.fX - b.fX, a.fY - b.fY).
492 return {a.fX - b.fX, a.fY - b.fY};
495 /** Returns SkPoint resulting from SkPoint a offset by vector b, computed as: (a.fX + b.fX, a.fY + b.fY).
505 return {a.fX + b.fX, a.fY + b.fY};
520 /** Scales (vec->fX, vec->fY) so that length() returns one, while preserving ratio of vec->fX to vec->fY,
540 return Length(a.fX - b.fX, a.fY - b.fY);
550 return a.fX * b.fX + a.fY * b.fY;
564 return a.fX * b.fY - a.fY * b.fX;