Bounding Box Utils is a utility class that provides a number of useful functions for the creation and utility of BlockBoundingBox objects

Constructors

Methods

  • Parameters

    Returns Vector3

    Note that BlockBoundingBox objects represent whole blocks, so the center of boxes which have odd numbered bounds are not mathematically centered... i.e. a BlockBoundingBox( 0,0,0 -> 3,3,3 ) would have a center of (1,1,1) (not (1.5, 1.5, 1.5) as expected)

    Calculate the center block of a given BlockBoundingBox object.

    This function can't be called in read-only mode.

  • Parameters

    Returns boolean

    Check to see if a given coordinate is inside a BlockBoundingBox

    This function can't be called in read-only mode.

  • Parameters

    Returns boolean

    Check to see if a BlockBoundingBox is valid (i.e. (min <= max))

    This function can't be called in read-only mode.

MMNEPVFCICPMFPCPTTAAATR