Lines Matching refs:vec
502 /** Scales (vec->fX, vec->fY) so that length() returns one, while preserving ratio of vec->fX
503 to vec->fY, if possible. If original length is nearly zero, sets vec to (0, 0) and returns
504 zero; otherwise, returns length of vec before vec is scaled.
510 @param vec normalized to unit length
511 @return original vec length
515 static SkScalar Normalize(SkVector* vec);
551 /** Returns the cross product of vector and vec.
553 Vector and vec form three-dimensional vectors with z-axis value equal to zero.
557 @param vec right side of cross product
560 SkScalar cross(const SkVector& vec) const {
561 return CrossProduct(*this, vec);
564 /** Returns the dot product of vector and vector vec.
566 @param vec right side of dot product
569 SkScalar dot(const SkVector& vec) const {
570 return DotProduct(*this, vec);