IGEditorUtils.

SnapRotation(Quaternion, int) Method

Summary

Snaps the given `rotation` to the nearest snap increment on the specified axis (as specified in Edit/Snap Settings).

Syntax

public static Quaternion SnapRotation(Quaternion rotation, int axisIndex)

Parameters

Name Type Description
rotation Quaternion
axisIndex int

Return Value

Type Description
Quaternion