of

@NotNull
open fun of(@NotNull min: @NotNull Vector3d, @NotNull max: @NotNull Vector3d): @NotNull ModelBoundingBox

Creates a bounding box from two corner vectors.

Return

the bounding box

Since

1.15.2

Parameters

min

the minimum corner vector

max

the maximum corner vector


@NotNull
open fun of(x: Double, y: Double, z: Double): @NotNull ModelBoundingBox

Creates a bounding box centered at the origin with the given dimensions.

Return

the centered bounding box

Since

1.15.2

Parameters

x

the width (X-axis)

y

the height (Y-axis)

z

the depth (Z-axis)


@NotNull
open fun of(minX: Double, minY: Double, minZ: Double, maxX: Double, maxY: Double, maxZ: Double): @NotNull ModelBoundingBox

Creates a bounding box from explicit min/max coordinates.

This method automatically ensures that min values are less than or equal to max values.

Return

the normalized bounding box

Since

1.15.2

Parameters

minX

the first X coordinate

minY

the first Y coordinate

minZ

the first Z coordinate

maxX

the second X coordinate

maxY

the second Y coordinate

maxZ

the second Z coordinate