Home | History | Annotate | Download | only in core

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 SkASSERT(stride >= sizeof(SkPoint));
219 ((SkPoint*)((intptr_t)this + 0 * stride))->set(l, t);
220 ((SkPoint*)((intptr_t)this + 1 * stride))->set(l, b);
221 ((SkPoint*)((intptr_t)this + 2 * stride))->set(r, b);
222 ((SkPoint*)((intptr_t)this + 3 * stride))->set(r, t);
226 static void Offset(SkPoint points[], int count, const SkPoint& offset) {
230 static void Offset(SkPoint points[], int count, SkScalar dx, SkScalar dy) {
243 SkScalar length() const { return SkPoint::Length(fX, fY); }
294 void scale(SkScalar scale, SkPoint* dst) const;
304 void rotateCW(SkPoint* dst) const;
314 void rotateCCW(SkPoint* dst) const;
330 SkPoint operator-() const {
331 SkPoint neg;
339 void operator+=(const SkPoint& v) {
346 void operator-=(const SkPoint& v) {
351 SkPoint operator*(SkScalar scale) const {
355 SkPoint& operator*=(SkScalar scale) {
384 friend bool operator==(const SkPoint& a, const SkPoint& b) {
388 friend bool operator!=(const SkPoint& a, const SkPoint& b) {
401 bool equalsWithinTolerance(const SkPoint& p) const {
409 bool equalsWithinTolerance(const SkPoint& p, SkScalar tol) const {
417 friend SkPoint operator-(const SkPoint& a, const SkPoint& b) {
418 SkPoint v;
425 friend SkPoint operator+(const SkPoint& a, const SkPoint& b) {
426 SkPoint v;
444 static SkScalar Normalize(SkPoint* pt);
448 static SkScalar Distance(const SkPoint& a, const SkPoint& b) {
454 static SkScalar DotProduct(const SkPoint& a, const SkPoint& b) {
460 static SkScalar CrossProduct(const SkPoint& a, const SkPoint& b) {
464 SkScalar cross(const SkPoint& vec) const {
468 SkScalar dot(const SkPoint& vec) const {
476 SkScalar distanceToSqd(const SkPoint& pt) const {
497 SkScalar distanceToLineBetweenSqd(const SkPoint& a,
498 const SkPoint& b,
506 SkScalar distanceToLineBetween(const SkPoint& a,
507 const SkPoint& b,
515 SkScalar distanceToLineSegmentBetweenSqd(const SkPoint& a,
516 const SkPoint& b) const;
521 SkScalar distanceToLineSegmentBetween(const SkPoint& a,
522 const SkPoint& b) const {
531 void setOrthog(const SkPoint& vec, Side side = kLeft_Side) {
550 SkPoint SkVector;