MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / RotShapeInPlace

Function RotShapeInPlace

jni/stasm/pinstart.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static void RotShapeInPlace(
31 Shape& shape, // io
32 double rot, // in: in-plane rotation angle in degrees, pos is anticlock
33 double x, // in: rotation origin
34 double y) // in
35{
36 CV_Assert(rot >= -360 && rot <= 360); // sanity check, 360 is arb
37
38 const MAT rotmat =
39 getRotationMatrix2D(cv::Point2f(float(x), float(y)), rot, 1.0);
40
41 TransformShapeInPlace(shape, rotmat);
42}
43
44// If shape5 does not have 5 points, return rot and yaw of 0.
45// Else assume that the following five points are present, in this order:

Callers 1

Calls 1

TransformShapeInPlaceFunction · 0.85

Tested by

no test coverage detected