表示一个四元数,用于游戏中的旋转计算。
Represents a quaternion for rotation calculations in the game.
构造一个新的四元数实例。
Constructs a new quaternion instance.
四元数的w分量。
The w component of the quaternion.
四元数的x分量。
The x component of the quaternion.
四元数的y分量。
The y component of the quaternion.
四元数的z分量。
The z component of the quaternion.
四元数的 w 分量。
四元数的 x 分量。
四元数的 y 分量。
四元数的 z 分量。
将另一个四元数加到当前四元数上。
Adds another quaternion to the current quaternion.
另一个四元数。
The other quaternion.
当前四元数实例。
The current quaternion instance.
计算当前四元数与另一个四元数之间的角度。
Calculates the angle between the current quaternion and another quaternion.
角度结果(弧度)。
The angle result in radians.
克隆当前四元数实例。
Clones the current quaternion instance.
新的四元数实例,值与当前实例相同。
A new quaternion instance with the same values as the current instance.
复制另一个四元数的值。
Copies the values of another quaternion.
要复制的四元数。
The quaternion to copy.
将当前四元数除以另一个四元数。
Divides the current quaternion by another quaternion.
计算当前四元数与另一个四元数的点积。
Calculates the dot product of the current quaternion with another quaternion.
点积结果。
The dot product result.
检查当前四元数是否与另一个四元数近似(误差值:0.000001)相等。
Checks if the current quaternion is approximately equal to another quaternion (error value: 0.000001).
如果相等返回true,否则返回false。
Returns true if equal, otherwise false.
获取四元数的轴角表示。
Gets the axis-angle representation of the quaternion.
另一个四元数(未使用)。
Another quaternion (unused).
包含旋转轴和旋转角度的对象。
An object containing the axis and angle of rotation.
计算当前四元数的逆四元数。
Calculates the inverse of the current quaternion.
计算四元数的模长。
Calculates the magnitude of the quaternion.
模长结果。
The magnitude result.
将当前四元数与另一个四元数相乘。
Multiplies the current quaternion with another quaternion.
将四元数归一化,使其模长为1。
Normalizes the quaternion to have a magnitude of 1.
绕x轴旋转四元数。
Rotates the quaternion around the x-axis.
旋转角度(弧度)。
The rotation angle in radians.
绕y轴旋转四元数。
Rotates the quaternion around the y-axis.
绕z轴旋转四元数。
Rotates the quaternion around the z-axis.
设置四元数的分量值。
Sets the component values of the quaternion.
使用球面线性插值计算两个四元数之间的中间四元数。
Calculates an intermediate quaternion between two quaternions using spherical linear interpolation.
插值参数,范围在0到1之间。
The interpolation parameter, ranging from 0 to 1.
插值结果四元数。
The resulting interpolated quaternion.
计算四元数的模长的平方。
Calculates the square of the magnitude of the quaternion.
模长平方结果。
The square of the magnitude.
从当前四元数减去另一个四元数。
Subtracts another quaternion from the current quaternion.
将四元数转换为字符串表示。
Converts the quaternion to a string representation.
四元数的字符串表示。
The string representation of the quaternion.
Static
从轴角表示转换到四元数表示。
Converts from axis-angle representation to quaternion representation.
旋转轴。
The axis of rotation.
The angle of rotation in radians.
对应轴角表示的四元数。
The quaternion corresponding to the axis-angle representation.
从欧拉角转换到四元数。
Converts from Euler angles to quaternion.
绕x轴的旋转角度。
The rotation angle around the x-axis.
绕y轴的旋转角度。
The rotation angle around the y-axis.
绕z轴的旋转角度。
The rotation angle around the z-axis.
对应欧拉角的四元数。
The quaternion corresponding to the Euler angles.
计算两个三维向量之间的旋转四元数。
Calculates the rotation quaternion between two 3D vectors.
起始向量。
The starting vector.
目标向量。
The target vector.
代表从向量a旋转到向量b的四元数。
The quaternion representing the rotation from vector a to vector b.
Zh
表示一个四元数,用于游戏中的旋转计算。
En
Represents a quaternion for rotation calculations in the game.