Documentation

Unity Engine

Download Unity

Unity Engine

operator +(quaternion4, quaternion4)

Adds the components of two quaternion4 values.
Read time 1 minuteLast updated 5 hours ago

Definition

public static quaternion4 operator +(quaternion4 lhs, quaternion4 rhs)

Parameters

The first quaternion4 to add.

The second quaternion4 to add.

Returns

Type

Description

quaternion4The quaternion4 whose components are the sums of the components of
lhs
and
rhs
.

Remarks

The result isn't normalized, and the operator doesn't flip the quaternions into the same hemisphere. To flip
rhs
into the hemisphere of
lhs
before the addition, use Quaternion4Extensions.Add.