var rotatedRect = RotatedRect.create(center, size, angle);var rectPoints = new Float32Array(8);TensorMath.getRotatedRectPoints(rotatedRect, rectPoints); Copy
var rotatedRect = RotatedRect.create(center, size, angle);var rectPoints = new Float32Array(8);TensorMath.getRotatedRectPoints(rotatedRect, rectPoints);
The rotation angle in degrees.
The center point (mass center) of RotatedRect.
The width and height of RotatedRect.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
other
Returns the description of RotatedRect.
Example