Skip to main content

Common data types

This is an overview over the common data types used in ScrewBox. To get more detailed information please have a look the JavaDoc.

General

TypeDescription
PercentA percent value between 0.0 and 1.0.
EaseConfigures the direction and the progress of a value change. See Ease

Space

TypeDescription
VectorA position or a distance in the 2d world.
BoundsA square area in the 2d world. The upper left corner is called origin, the center is called position.
OffsetA pixel perfect position on the screen.
SizeA pixel perfect size of an area.
LineThe line between two distinct vectors.
PathA path with multiple nodes.
RotationRotation in degrees.

Time

TypeDescription
TimeA point in time with nano accuracy. Can only be used to measure Duration relative to other Time instance Loses meaning when shutting down the JVM.
DurationThe duration between one point in time and another.