Lines Matching defs:SkPoint

156 struct SK_API SkPoint {
159 static SkPoint Make(SkScalar x, SkScalar y) {
160 SkPoint pt;
192 void setAbs(const SkPoint& pt) {
199 SkPoint* v = this;
209 SkPoint* v = this;
217 static void Offset(SkPoint points[], int count, const SkPoint& offset) {
221 static void Offset(SkPoint points[], int count, SkScalar dx, SkScalar dy) {
234 SkScalar length() const { return SkPoint::Length(fX, fY); }
285 void scale(SkScalar scale, SkPoint* dst) const;
295 void rotateCW(SkPoint* dst) const;
305 void rotateCCW(SkPoint* dst) const;
321 SkPoint operator-() const {
322 SkPoint neg;
330 void operator+=(const SkPoint& v) {
337 void operator-=(const SkPoint& v) {
365 friend bool operator==(const SkPoint& a, const SkPoint& b) {
369 friend bool operator!=(const SkPoint& a, const SkPoint& b) {
382 bool equalsWithinTolerance(const SkPoint& p) const {
390 bool equalsWithinTolerance(const SkPoint& p, SkScalar tol) const {
398 friend SkPoint operator-(const SkPoint& a, const SkPoint& b) {
399 SkPoint v;
406 friend SkPoint operator+(const SkPoint& a, const SkPoint& b) {
407 SkPoint v;
425 static SkScalar Normalize(SkPoint* pt);
429 static SkScalar Distance(const SkPoint& a, const SkPoint& b) {
435 static SkScalar DotProduct(const SkPoint& a, const SkPoint& b) {
441 static SkScalar CrossProduct(const SkPoint& a, const SkPoint& b) {
445 SkScalar cross(const SkPoint& vec) const {
449 SkScalar dot(const SkPoint& vec) const {
457 SkScalar distanceToSqd(const SkPoint& pt) const {
478 SkScalar distanceToLineBetweenSqd(const SkPoint& a,
479 const SkPoint& b,
487 SkScalar distanceToLineBetween(const SkPoint& a,
488 const SkPoint& b,
496 SkScalar distanceToLineSegmentBetweenSqd(const SkPoint& a,
497 const SkPoint& b) const;
502 SkScalar distanceToLineSegmentBetween(const SkPoint& a,
503 const SkPoint& b) const {
512 void setOrthog(const SkPoint& vec, Side side = kLeft_Side) {
531 typedef SkPoint SkVector;