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
div(divisor: Float)

Returns a new FloatSize2d that's uniformly divided by the divisor.

open operator Boolean
equals(other: Any?)
open Int
operator FloatSize2d
times(scalar: Float)

Returns a new FloatSize2d that's uniformly multiplied by the scalar.

FloatSize3d
to3d(depth: Float)

Returns a new FloatSize3d with the same width and height of this FloatSize2d, and the given depth.

open String

Public properties

Float
Float

Public constructors

FloatSize2d

Added in 1.0.0-alpha05
FloatSize2d(width: Float = 0.0f, height: Float = 0.0f)

Public functions

div

Added in 1.0.0-alpha05
operator fun div(divisor: Float): FloatSize2d

Returns a new FloatSize2d that's uniformly divided by the divisor.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

times

Added in 1.0.0-alpha05
operator fun times(scalar: Float): FloatSize2d

Returns a new FloatSize2d that's uniformly multiplied by the scalar.

to3d

Added in 1.0.0-alpha05
fun to3d(depth: Float = 0.0f): FloatSize3d

Returns a new FloatSize3d with the same width and height of this FloatSize2d, and the given depth.

toString

open fun toString(): String

Public properties

height

Added in 1.0.0-alpha05
val heightFloat

width

Added in 1.0.0-alpha05
val widthFloat