Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 692 Bytes

decentraland-ecs.quaternion.rotationaxis.md

File metadata and controls

21 lines (14 loc) · 692 Bytes

Home > decentraland-ecs > Quaternion > RotationAxis

Quaternion.RotationAxis method

Creates a quaternion from a rotation around an axis

Signature:

static RotationAxis(axis: Vector3, angle: number): Quaternion;

Returns: Quaternion

a new quaternion created from the given axis (Vector3) and angle in radians (float)

Parameters

Parameter Type Description
axis Vector3 defines the axis to use
angle number defines the angle to use (in Euler degrees)