gophergfx
    Preparing search index...

    Class BoundingSphere

    Index
    center: Vector3
    radius: number
    • Computes the bounds of the BoundingSphere from the given vertices

      Parameters

      • vertices: number[] | Vector3[]

        The array of Vector3 or number objects representing the vertices

      • boundingBox: BoundingBox3

        The BoundingBox3 object to use when computing the bounds

      Returns void

    • Checks if the given BoundingSphere intersects with the current one

      Parameters

      Returns boolean

      True if the two BoundingSpheres intersect, false otherwise