Uses of Class
org.openpatch.scratch.Shape
Packages that use Shape
Package
Description
The org.openpatch.scratch package contains classes that provide an API for creating Scratch-like
projects in Java.
Provides classes and interfaces for tiled extensions in Scratch.
-
Uses of Shape in org.openpatch.scratch
Subclasses of Shape in org.openpatch.scratchModifier and TypeClassDescriptionclassRepresents a circle shape defined by its center and radius.classRepresents an ellipse shape.classRepresents a polygon shape defined by its vertices.classRepresents a rectangle shape defined by its position and size.classRepresents a triangle shape defined by three vertices.Methods in org.openpatch.scratch that return ShapeModifier and TypeMethodDescriptionHitbox.getShape()Returns the shape of the hitbox.Shape.rotate(double theta, double anchorX, double anchorY) Rotate the shape by the specified angle around a given anchor point.Shape.scale(double scaleX, double scaleY) Check if the shape is empty.Shape.translate(double dx, double dy) Translate the shape by the specified distances in the x and y directions.Methods in org.openpatch.scratch with parameters of type ShapeModifier and TypeMethodDescriptionbooleanShape.intersects(Shape other) Check if the shape intersects with another shape.voidSets the hitbox for the sprite using the specified shape.Constructors in org.openpatch.scratch with parameters of type Shape -
Uses of Shape in org.openpatch.scratch.extensions.tiled
Methods in org.openpatch.scratch.extensions.tiled that return Shape