Quaternion.FromEulerAngle

FromEulerAngle(double, double, double)

Creates quaternion from given Euler angle

public static Quaternion FromEulerAngle(double pitch, double yaw, double roll)
ParameterTypeDescription
pitchDoublePitch in radian
yawDoubleYaw in radian
rollDoubleRoll in radian

Return Value

Created quaternion

See Also


FromEulerAngle(Vector3)

Creates quaternion from given Euler angle

public static Quaternion FromEulerAngle(Vector3 eulerAngle)
ParameterTypeDescription
eulerAngleVector3Euler angle in radian

Return Value

Created quaternion

See Also