Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BoundBall

Hierarchy

  • BoundBall

Index

Constructors

constructor

  • new BoundBall(raw?: Float32Array, offset?: number): BoundBall
  • Parameters

    • Optional raw: Float32Array
    • Optional offset: number

    Returns BoundBall

Properties

Static Readonly OFFSETS

OFFSETS: Readonly<{ center: number; radius: number }> = ...

Accessors

center

  • get center(): DeepImmutableObject<Vector3>
  • set center(val: DeepImmutableObject<Vector3>): void
  • 包围球中心

    memberof

    BoundBall

    Returns DeepImmutableObject<Vector3>

  • 包围球中心

    Parameters

    • val: DeepImmutableObject<Vector3>

    Returns void

radius

  • get radius(): number
  • set radius(val: number): void
  • 包围球半径

    memberof

    BoundBall

    Returns number

  • 包围球半径

    Parameters

    • val: number

    Returns void

Methods

initByPointRadius

  • initByPointRadius(center: DeepImmutableObject<Vector3>, radius: number): void
  • Parameters

    • center: DeepImmutableObject<Vector3>
    • radius: number

    Returns void

initByPoints

  • 使用一系列点初始化

    memberof

    BoundBall

    Parameters

    • points: DeepImmutableObject<Vector3>[]

    Returns BoundBall

    自身

setValue

  • 设置值

    memberof

    BoundBall

    Parameters

    • center: DeepImmutableObject<Vector3>
    • radius: number

    Returns BoundBall

Static createFromCenterAndRadius

  • createFromCenterAndRadius(center: DeepImmutableObject<Vector3>, radius: number): BoundBall
  • 使用中心和半径创建包围球

    static
    memberof

    BoundBall

    Parameters

    • center: DeepImmutableObject<Vector3>
    • radius: number

    Returns BoundBall

Generated using TypeDoc