FloatSize3d


public final class FloatSize3d


Size of a 3d object represented as a Float, such as the dimensions of a spatial volume in meters.

Summary

Public constructors

FloatSize3d(float width, float height, float depth)

Public methods

final @NonNull FloatSize3d
div(float divisor)

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

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

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

final @NonNull FloatSize2d

Returns a new FloatSize2d with the same width and height as this FloatSize3d.

@NonNull String

Public constructors

FloatSize3d

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

Public methods

div

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

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

equals

public boolean equals(Object other)

getDepth

Added in 1.0.0-alpha05
public final float getDepth()

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 FloatSize3d times(float scalar)

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

to2d

Added in 1.0.0-alpha05
public final @NonNull FloatSize2d to2d()

Returns a new FloatSize2d with the same width and height as this FloatSize3d.

toString

public @NonNull String toString()