SurfaceEntity.Shape.Quad


public final class SurfaceEntity.Shape.Quad implements SurfaceEntity.Shape


A Quadrilateral-shaped canvas. Width and height are expressed in the X and Y axis in the local spatial coordinate system of the entity. (0,0) is the center of the Quad mesh; the lower-left corner of the Quad is at (-width/2, -height/2).

Summary

Public constructors

Public methods

final @NonNull FloatSize2d

The size of the Quad in the local spatial coordinate system of the entity.

Public constructors

Quad

Added in 1.0.0-alpha07
public Quad(@NonNull FloatSize2d extents)

Public methods

getExtents

Added in 1.0.0-alpha07
public final @NonNull FloatSize2d getExtents()

The size of the Quad in the local spatial coordinate system of the entity.