FloatSize2d


public final class FloatSize2d


Size of a 2d object represented as a Float, such as the dimensions of a panel in meters.

Summary

Public constructors

FloatSize2d(float width, float height)

Public methods

final @NonNull FloatSize2d
div(float divisor)

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

boolean
equals(Object other)
final float
final float
int
final @NonNull FloatSize2d
times(float scalar)

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

final @NonNull FloatSize3d
to3d(float depth)

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

@NonNull String

Public constructors

FloatSize2d

Added in 1.0.0-alpha05
public FloatSize2d(float width, float height)

Public methods

div

Added in 1.0.0-alpha05
public final @NonNull FloatSize2d div(float divisor)

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

equals

public boolean equals(Object other)

getHeight

Added in 1.0.0-alpha05
public final float getHeight()

getWidth

Added in 1.0.0-alpha05
public final float getWidth()

hashCode

public int hashCode()

times

Added in 1.0.0-alpha05
public final @NonNull FloatSize2d times(float scalar)

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

to3d

Added in 1.0.0-alpha05
public final @NonNull FloatSize3d to3d(float depth)

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

toString

public @NonNull String toString()