data class CylinderShapeOptions(val radius: Float = 5.0f, val width: Float = 1.0f, val height: Float = 0.75f) : PanelConfigOptionsModifier, UIPanelShapeOptions, MediaPanelShapeOptions
CylinderShapeOptions
(
radius
, width
, height
)
|
Signature
constructor(radius: Float = 5.0f, width: Float = 1.0f, height: Float = 0.75f) Parameters
radius:
Float
width:
Float
height:
Float
width / radius radians. The maximum supported angular extent is 360° (2 * PI radians). If width / radius exceeds 2 * PI, the radius will be increased to width / (2 * PI) so the full panel width is preserved without exceeding 360°. Panels wider than 180° (i.e. where radius < width / PI) should not be used with horizontally scrollable content.
Returns |
height
: Float
[Get] |
The height of the panel in meters.
The angular extent of the cylinder is width / radius radians. The maximum supported angular extent is 360° (2 * PI radians). If width / radius exceeds 2 * PI, the radius will be increased to width / (2 * PI) so the full panel width is preserved without exceeding 360°. Panels wider than 180° (i.e. where radius < width / PI) should not be used with horizontally scrollable content.
Signature
val height: Float = 0.75f |
radius
: Float
[Get] |
Controls the curvature of the panel in meters. A smaller radius produces a more curved panel; a larger radius produces a flatter one.
Signature
val radius: Float = 5.0f |
width
: Float
[Get] |
The arc-length width of the panel in meters.
Signature
val width: Float = 1.0f |
applyTo
(
options
)
|
Signature
open override fun applyTo(options: PanelConfigOptions) Parameters
options:
PanelConfigOptions |