Scratch for Java

Hitbox::translateAndRotateAndResize()

Transforms the shape by scaling, translating, and rotating it.

Syntax

Java

.translateAndRotateAndResize(degrees, originX, originY, translateX, translateY, size)

Parameters

Name Data Type Description
degrees double The angle in degrees to rotate the shape.
originX double The x-coordinate of the rotation origin.
originY double The y-coordinate of the rotation origin.
translateX double The x-coordinate to translate the shape.
translateY double The y-coordinate to translate the shape.
size double The size to scale the shape, where 100.0 represents the original size.

Return

void

translateAndRotateAndResize()