xr-frame / Exports / BoundBall

# Class: BoundBall

# Table of contents

# Constructors

# Properties

# Accessors

# Methods

# Constructors

# constructor

new BoundBall(raw?, offset?)

# Parameters

Name Type
raw? Float32Array
offset? number

# Properties

# OFFSETS

Static Readonly OFFSETS: Readonly<{ center: number = 0; radius: number = 3 }>

# Accessors

# center

get center(): Vector3

包围球中心

memberof BoundBall

# Returns

Vector3

set center(val): void

包围球中心

# Parameters

Name Type
val Vector3

# Returns

void


# radius

get radius(): number

包围球半径

memberof BoundBall

# Returns

number

set radius(val): void

包围球半径

# Parameters

Name Type
val number

# Returns

void

# Methods

# initByPointRadius

initByPointRadius(center, radius): void

# Parameters

Name Type
center Vector3
radius number

# Returns

void


# initByPoints

initByPoints(points): BoundBall

使用一系列点初始化

memberof BoundBall

# Parameters

Name Type
points Vector3[]

# Returns

BoundBall

自身


# setValue

setValue(center, radius): BoundBall

设置值

memberof BoundBall

# Parameters

Name Type
center Vector3
radius number

# Returns

BoundBall


# createFromCenterAndRadius

Static createFromCenterAndRadius(center, radius): BoundBall

使用中心和半径创建包围球

static

memberof BoundBall

# Parameters

Name Type
center Vector3
radius number

# Returns

BoundBall