Skip to content

Documentation / scene / computeNearestPoints

Function: computeNearestPoints()

computeNearestPoints(posP, dirP, posQ, dirQ, out?): object

Defined in: libs/scene/src/animation/joint_dynamics/collision.ts:529

Computes the nearest points between two segments.

Parameters

posP

Vector3

dirP

Vector3

posQ

Vector3

dirQ

Vector3

out?

NearestPointsResult

Returns

object

tP

tP: number

tQ

tQ: number

pointOnP

pointOnP: Vector3

pointOnQ

pointOnQ: Vector3

sqrDistance

sqrDistance: number

Released under the MIT License.