Home | History | Annotate | Download | only in core

Lines Matching refs:fY

21     int16_t fY; //!< y-axis value used by SkIPoint16
23 /** Sets fX to x, fY to y. If SK_DEBUG is defined, asserts
42 @return fY
44 int16_t y() const { return fY; }
46 /** Sets fX to x and fY to y.
49 @param y new value for fY
53 fY = SkToS16(y);
66 int32_t fY; //!< y-axis value used by SkIPoint.
68 /** Sets fX to x, fY to y.
86 @return fY
88 int32_t y() const { return fY; }
90 /** Returns true if fX and fY are both zero.
92 @return true if fX is zero and fY is zero
94 bool isZero() const { return (fX | fY) == 0; }
96 /** Sets fX to x and fY to y.
99 @param y new value for fY
103 fY = y;
106 /** Returns SkIPoint changing the signs of fX and fY.
108 @return SkIPoint as (-fX, -fY)
111 return {-fX, -fY};
114 /** Offsets SkIPoint by ivector v. Sets SkIPoint to (fX + v.fX, fY + v.fY).
120 fY = Sk32_sat_add(fY, v.fY);
123 /** Subtracts ivector v from SkIPoint. Sets SkIPoint to: (fX - v.fX, fY - v.fY).
129 fY = Sk32_sat_sub(fY, v.fY);
135 @param y value compared with fY
139 return fX == x && fY == y;
146 @return true if a.fX == b.fX and a.fY == b.fY
149 return a.fX == b.fX && a.fY == b.fY;
156 @return true if a.fX != b.fX or a.fY != b.fY
159 return a.fX != b.fX || a.fY != b.fY;
162 /** Returns ivector from b to a; computed as (a.fX - b.fX, a.fY - b.fY).
171 return { Sk32_sat_sub(a.fX, b.fX), Sk32_sat_sub(a.fY, b.fY) };
174 /** Returns SkIPoint resulting from SkIPoint a offset by ivector b, computed as: (a.fX + b.fX, a.fY + b.fY).
184 return { Sk32_sat_add(a.fX, b.fX), Sk32_sat_add(a.fY, b.fY) };
204 SkScalar fY;
206 /** Sets fX to x, fY to y. Used both to set SkPoint and vector.
224 @return fY
226 SkScalar y() const { return fY; }
228 /** Returns true if fX and fY are both zero.
230 @return true if fX is zero and fY is zero
232 bool isZero() const { return (0 == fX) & (0 == fY); }
234 /** Sets fX to x and fY to y.
237 @param y new value for fY
241 fY = y;
244 /** Sets fX to x and fY to y, promoting integers to SkScalar values.
246 Assigning a large integer value directly to fX or fY may cause a compiler
251 @param y new value for fY
255 fY = SkIntToScalar(y);
258 /** Sets fX to p.fX and fY to p.fY, promoting integers to SkScalar values.
260 Assigning an SkIPoint containing a large integer value directly to fX or fY may
262 This safely casts p.fX and p.fY to avoid the error.
268 fY = SkIntToScalar(p.fY);
271 /** Sets fX to absolute value of pt.fX; and fY to absolute value of pt.fY.
273 @param pt members providing magnitude for fX and fY
277 fY = SkScalarAbs(pt.fY);
287 Offset(points, count, offset.fX, offset.fY);
295 @param dy added to fY in points
306 @param dy added to fY
310 fY += dy;
315 sqrt(fX * fX + fY * fY)
321 SkScalar length() const { return SkPoint::Length(fX, fY); }
325 sqrt(fX * fX + fY * fY)
333 /** Scales (fX, fY) so that length() returns one, while preserving ratio of fX to fY,
342 (fX, fY) is proportional to (x, y). If (x, y) length is nearly zero,
346 @param y proportional value for fY
365 @param y proportional value for fY
384 /** Changes the sign of fX and fY.
388 fY = -fY;
391 /** Returns SkPoint changing the signs of fX and fY.
393 @return SkPoint as (-fX, -fY)
396 return {-fX, -fY};
399 /** Adds vector v to SkPoint. Sets SkPoint to: (fX + v.fX, fY + v.fY).
405 fY += v.fY;
408 /** Subtracts vector v from SkPoint. Sets SkPoint to: (fX - v.fX, fY - v.fY).
414 fY -= v.fY;
420 @return SkPoint as (fX * scale, fY * scale)
423 return {fX * scale, fY * scale};
426 /** Multiplies SkPoint by scale. Sets SkPoint to: (fX * scale, fY * scale)
433 fY *= scale;
437 /** Returns true if both fX and fY are measurable values.
444 accum *= fY;
457 @param y value compared with fY
461 return fX == x && fY == y;
468 @return true if a.fX == b.fX and a.fY == b.fY
471 return a.fX == b.fX && a.fY == b.fY;
478 @return true if a.fX != b.fX or a.fY != b.fY
481 return a.fX != b.fX || a.fY != b.fY;
484 /** Returns vector from b to a, computed as (a.fX - b.fX, a.fY - b.fY).
494 return {a.fX - b.fX, a.fY - b.fY};
497 /** Returns SkPoint resulting from SkPoint a offset by vector b, computed as: (a.fX + b.fX, a.fY + b.fY).
507 return {a.fX + b.fX, a.fY + b.fY};
522 /** Scales (vec->fX, vec->fY) so that length() returns one, while preserving ratio of vec->fX to vec->fY,
542 return Length(a.fX - b.fX, a.fY - b.fY);
552 return a.fX * b.fX + a.fY * b.fY;
566 return a.fX * b.fY - a.fY * b.fX;