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.

final @NonNull FloatSize3d
div(int divisor)

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

boolean
equals(Object other)
static final @NonNull FloatSize3d

Creates a FloatSize3d from a Vector3, using the Vector3's x, y, and z components as the width, height, and depth respectively.

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 FloatSize3d
times(int 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-alpha08
public FloatSize3d(float width, float height, float depth)

Public methods

div

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

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

div

Added in 1.0.0-alpha08
public final @NonNull FloatSize3d div(int divisor)

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

equals

public boolean equals(Object other)

fromVector3

Added in 1.0.0-alpha08
public static final @NonNull FloatSize3d fromVector3(@NonNull Vector3 vector)

Creates a FloatSize3d from a Vector3, using the Vector3's x, y, and z components as the width, height, and depth respectively.

Parameters
@NonNull Vector3 vector

The source Vector3.

Returns
@NonNull FloatSize3d

A new FloatSize3d instance.

getDepth

Added in 1.0.0-alpha08
public final float getDepth()

getHeight

Added in 1.0.0-alpha08
public final float getHeight()

getWidth

Added in 1.0.0-alpha08
public final float getWidth()

hashCode

public int hashCode()

times

Added in 1.0.0-alpha08
public final @NonNull FloatSize3d times(float scalar)

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

times

Added in 1.0.0-alpha08
public final @NonNull FloatSize3d times(int scalar)

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

to2d

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

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

toString

public @NonNull String toString()