BoundingBox


public final class BoundingBox


Represents an axis-aligned bounding box in 3D space, defined by its minimum and maximum corner points.

Summary

Public constructors

Public methods

boolean
equals(Object other)
final @NonNull Vector3

A Vector3 representing the maximum corner of the box (highest x, y, and z values).

final @NonNull Vector3

A Vector3 representing the minimum corner of the box (lowest x, y, and z values).

int
@NonNull String

Public constructors

BoundingBox

Added in 1.0.0-alpha05
public BoundingBox(@NonNull Vector3 min, @NonNull Vector3 max)

Public methods

equals

public boolean equals(Object other)

getMax

Added in 1.0.0-alpha05
public final @NonNull Vector3 getMax()

A Vector3 representing the maximum corner of the box (highest x, y, and z values).

getMin

Added in 1.0.0-alpha05
public final @NonNull Vector3 getMin()

A Vector3 representing the minimum corner of the box (lowest x, y, and z values).

hashCode

public int hashCode()

toString

public @NonNull String toString()