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 |
|---|
Quad( |
Public methods |
|
|---|---|
final float |
The radius of the rounded corners of the Quad in the local spatial coordinate system of the entity. |
final @NonNull FloatSize2d |
The size of the Quad in the local spatial coordinate system of the entity. |
Public constructors
Quad
public Quad(
@NonNull FloatSize2d extents,
@FloatRange(from = 0.0) float cornerRadius
)
Public methods
getCornerRadius
public final float getCornerRadius()
The radius of the rounded corners of the Quad in the local spatial coordinate system of the entity. The maximum allowed value is half of the smaller dimension of extents. If set to 0.0f, the corners will be sharp.
getExtents
public final @NonNull FloatSize2d getExtents()
The size of the Quad in the local spatial coordinate system of the entity.