SurfaceEntity.Shape.Quad


class SurfaceEntity.Shape.Quad : 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(extents: FloatSize2d, cornerRadius: @FloatRange(from = 0.0) Float)

Public properties

Float

The radius of the rounded corners of the Quad in the local spatial coordinate system of the entity.

FloatSize2d

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

Public constructors

Quad

Added in 1.0.0-beta01
Quad(extents: FloatSize2d, cornerRadius: @FloatRange(from = 0.0) Float = 0.0f)

Public properties

cornerRadius

Added in 1.0.0-beta01
val cornerRadiusFloat

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.

extents

Added in 1.0.0-beta01
val extentsFloatSize2d

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