Table of Contents

Method b3ComputeQuatBetweenUnitVectors

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3ComputeQuatBetweenUnitVectors(Vector3, Vector3)

Computes the shortest rotation taking one unit vector to another.

public static extern Quaternion b3ComputeQuatBetweenUnitVectors(Vector3 v1, Vector3 v2)

Parameters

v1 Vector3

The starting unit vector.

v2 Vector3

The target unit vector.

Returns

Quaternion

The rotation.