BoxVolume#

Interface BoxVolume

This interfaces provides functions for working with BoxVolumes. BoxVolumes are Axis Aligned Bounding Boxes (AABB) and describe the minimal Bounding Box of a Node. They consist of six values, 3 for the minimum and 3 for the maximum corner.

Hierarchy

  • BoxVolume

Methods

  • Returns true if the given BoxVolume contains the other BoxVolume.

    Parameters

    Returns boolean

  • Parameters

    Returns void

  • Returns true if the given BoxVolume equals the other BoxVolume.

    Parameters

    Returns boolean

  • Parameters

    • newMin: Float32Array | [number, number, number]
    • newMax: Float32Array | [number, number, number]

    Returns void

  • Parameters

    • other: BoxVolume
    • Optional transform: Float32Array | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]

    Returns void

  • Extends a BoxVolume by another BoxVolume. The resulting BoxVolume will span over the other BoxVolume too.

    Parameters

    Returns void

  • Creates a BoxVolume from an array.

    Parameters

    • array: number[] | Float32Array

      the number array with 6 values

    Returns boolean

  • Returns the center of the BoxVolume.

    Returns Float32Array

  • Returns the corner points of a BoxVolume.

    Returns Float32Array[]

  • Returns number

  • Returns the maximum of the BoxVolume.

    Returns Float32Array

  • Returns the minimum of the BoxVolume.

    Returns Float32Array

  • Returns Float32Array

  • Returns the size of the BoxVolume.

    Returns Float32Array

  • Parameters

    • p: Float32Array

    Returns void

  • Returns true, if the BoxVolume is valid.

    Returns boolean

  • Returns true if two BoxVolumes are overlapping.

    Parameters

    Returns boolean

  • Returns void

  • Parameters

    • center: Float32Array | [number, number, number]
    • size: Float32Array | [number, number, number]

    Returns BoxVolume

  • Parameters

    • max: Float32Array | [number, number, number]

    Returns void

  • Parameters

    • min: Float32Array | [number, number, number]

    Returns void

  • Parameters

    • Optional valid: boolean

    Returns void

  • Parameters

    • matrix: Float32Array | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]
    • other: BoxVolume

    Returns BoxVolume

  • Parameters

    • matrix: Float32Array | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]
    • otherVolume: number[]

    Returns BoxVolume


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: