• Home
  • Raw
  • Download

Lines Matching refs:SkPoint

136 struct SK_API SkPoint {  struct
139 static SkPoint Make(SkScalar x, SkScalar y) { in Make() argument
140 SkPoint pt; in Make()
167 void setAbs(const SkPoint& pt) { in setAbs() argument
174 SkPoint* v = this; in setIRectFan() argument
184 SkPoint* v = this; in setRectFan() argument
192 static void Offset(SkPoint points[], int count, const SkPoint& offset) { in Offset() argument
196 static void Offset(SkPoint points[], int count, SkScalar dx, SkScalar dy) { in Offset() argument
209 SkScalar length() const { return SkPoint::Length(fX, fY); } in length() argument
249 void scale(SkScalar scale, SkPoint* dst) const;
259 void rotateCW(SkPoint* dst) const; argument
269 void rotateCCW(SkPoint* dst) const; argument
285 SkPoint operator-() const { argument
286 SkPoint neg; argument
294 void operator+=(const SkPoint& v) {
301 void operator-=(const SkPoint& v) {
310 friend bool operator==(const SkPoint& a, const SkPoint& b) { argument
314 friend bool operator!=(const SkPoint& a, const SkPoint& b) {
320 bool equalsWithinTolerance(const SkPoint& v, SkScalar tol) const { in equalsWithinTolerance() argument
328 friend SkPoint operator-(const SkPoint& a, const SkPoint& b) {
329 SkPoint v; argument
336 friend SkPoint operator+(const SkPoint& a, const SkPoint& b) {
337 SkPoint v; argument
355 static SkScalar Normalize(SkPoint* pt);
359 static SkScalar Distance(const SkPoint& a, const SkPoint& b) { in Distance() argument
365 static SkScalar DotProduct(const SkPoint& a, const SkPoint& b) { in DotProduct() argument
371 static SkScalar CrossProduct(const SkPoint& a, const SkPoint& b) { in CrossProduct() argument
375 SkScalar cross(const SkPoint& vec) const { in cross() argument
379 SkScalar dot(const SkPoint& vec) const { in dot() argument
387 SkScalar distanceToSqd(const SkPoint& pt) const { in distanceToSqd() argument
408 SkScalar distanceToLineBetweenSqd(const SkPoint& a, argument
409 const SkPoint& b,
417 SkScalar distanceToLineBetween(const SkPoint& a,
418 const SkPoint& b,
426 SkScalar distanceToLineSegmentBetweenSqd(const SkPoint& a,
427 const SkPoint& b) const;
432 SkScalar distanceToLineSegmentBetween(const SkPoint& a, in distanceToLineSegmentBetween() argument
433 const SkPoint& b) const { in distanceToLineSegmentBetween()
442 void setOrthog(const SkPoint& vec, Side side = kLeft_Side) {
456 typedef SkPoint SkVector; argument