Package games.pixscape.runtime.api
Interface AuthoredGeometryFacade
public interface AuthoredGeometryFacade
HIGH_LEVEL read-only view of an entity's authored local 2D geometry.
Coordinates do not include transform, scale, rotation, origin, parallax,
display offsets or quad deformation. Quad deformation remains a separate
capability available through EntityRef.quadDeform().
-
Method Summary
Modifier and TypeMethodDescriptionbooleanclosed()Returns true for rectangles and polygons, and false otherwise.booleanexists()Returns whether supported authored local geometry exists.floatheight()Authored local height when dimensions exist, otherwise0.kind()floatlocalX(int vertexIndex) floatlocalY(int vertexIndex) intNumber of local vertices: four for rectangles, the authored vertex count for polygons and polylines, and zero when no supported geometry exists.floatwidth()Authored local width when dimensions exist, otherwise0.
-
Method Details
-
exists
boolean exists()Returns whether supported authored local geometry exists. -
kind
AuthoredGeometryKind kind() -
width
float width()Authored local width when dimensions exist, otherwise0. -
height
float height()Authored local height when dimensions exist, otherwise0. -
vertexCount
int vertexCount()Number of local vertices: four for rectangles, the authored vertex count for polygons and polylines, and zero when no supported geometry exists. -
localX
float localX(int vertexIndex) -
localY
float localY(int vertexIndex) -
closed
boolean closed()Returns true for rectangles and polygons, and false otherwise.
-