FloatSize2d
class FloatSize2d
Size of a 2d object represented as a Float, such as the dimensions of a panel in meters.
Summary
Public constructors |
|---|
FloatSize2d(width: Float, height: Float) |
Public functions |
|
|---|---|
operator FloatSize2d |
Returns a new |
operator FloatSize2d |
Returns a new |
open operator Boolean |
|
open Int |
hashCode() |
operator FloatSize2d |
Returns a new |
operator FloatSize2d |
Returns a new |
FloatSize3d |
Returns a new |
open String |
toString() |
Public constructors
Public functions
div
operator fun div(divisor: Float): FloatSize2d
Returns a new FloatSize2d that's uniformly divided by the divisor.
| Returns | |
|---|---|
FloatSize2d |
a new |
div
operator fun div(divisor: Int): FloatSize2d
Returns a new FloatSize2d that's uniformly divided by the divisor.
| Returns | |
|---|---|
FloatSize2d |
a new |
times
operator fun times(scalar: Float): FloatSize2d
Returns a new FloatSize2d that's uniformly multiplied by the scalar.
| Returns | |
|---|---|
FloatSize2d |
a new |
times
operator fun times(scalar: Int): FloatSize2d
Returns a new FloatSize2d that's uniformly multiplied by the scalar.
| Returns | |
|---|---|
FloatSize2d |
a new |
to3d
fun to3d(depth: Float = 0.0f): FloatSize3d
Returns a new FloatSize3d with the same width and height of this FloatSize2d, and the given depth.
| Parameters | |
|---|---|
depth: Float = 0.0f |
the depth of the new 3D size |
| Returns | |
|---|---|
FloatSize3d |
a new |