Lines Matching defs:pivot
97 void TransformMap::Scale(const Vector2<float>& scale, const Vector2<float>& pivot)
99 Scale(Vector3<float>(scale.x_, scale.y_, 1.0f), Vector3<float>(pivot.x_, pivot.y_, 0));
102 void TransformMap::Scale(const Vector3<float>& scale, const Vector3<float>& pivot)
105 scalePivot_ = pivot;
124 void TransformMap::Rotate(int16_t angle, const Vector2<float>& pivot)
126 Rotate(angle, Vector3<float>(pivot.x_, pivot.y_, 0), Vector3<float>(pivot.x_, pivot.y_, 1.0f));
339 void Rotate(const Vector2<int16_t>& point, int16_t angle, const Vector2<int16_t>& pivot, Vector2<int16_t>& out)
344 int16_t xt = point.x_ - pivot.x_;
345 int16_t yt = point.y_ - pivot.y_;
349 out.x_ = static_cast<int16_t>((temp > 0) ? (temp + 0.5f) : (temp - 0.5f)) + pivot.x_;
351 out.y_ = static_cast<int16_t>((temp > 0) ? (temp + 0.5f) : (temp - 0.5f)) + pivot.y_;
354 void Rotate(const Line& origLine, int16_t angle, const Vector2<int16_t>& pivot, Line& out)
359 Rotate(pt1, angle, pivot, out[1]); // 1: the first point of line
360 Rotate(pt2, angle, pivot, out[2]); // 2: the second point of line
363 void Rotate(const Rect& origRect, int16_t angle, const Vector2<int16_t>& pivot, Polygon& out)
370 Rotate(pt1, angle, pivot, out[1]); // 1: the first point
371 Rotate(pt2, angle, pivot, out[2]); // 2: the second point
372 Rotate(pt3, angle, pivot, out[3]); // 3: the third point
373 Rotate(pt4, angle, pivot, out[4]); // 4: the fourth point