表示用于游戏开发的三维向量。该类提供了多种3D向量数学运算,包括加法、减法、乘法、除法、点积、叉积和向量插值。
Represents a three-dimensional vector for game development. This class provides various 3D vector mathematical operations, including addition, subtraction, multiplication, division, dot product, cross product, and vector interpolation.
创建一个新的GameVector3实例。
Creates a new GameVector3 instance.
向量的x分量。
The x component of the vector.
向量的y分量。
The y component of the vector.
向量的z分量。
The z component of the vector.
向量的 x 分量。
向量的 y 分量。
向量的 z 分量。
将另一个向量加到此向量上。
Adds another vector to this vector.
要相加的向量。
The vector to add.
本向量,用于链式操作。
This vector, for chaining.
将另一个向量加到此向量上并更新此向量。
Adds another vector to this vector and updates this vector.
计算此向量与另一个向量之间的夹角。
Calculates the angle between this vector and another vector.
另一个向量。
The other vector.
夹角(弧度)。
The angle in radians.
创建此向量的副本。
Creates a copy of this vector.
新的GameVector3对象。
A new GameVector3 object.
将另一个向量的分量复制到此向量。
Copies the components of another vector to this vector.
要复制的向量。
The vector to copy.
计算此向量与另一个向量的叉积。
Calculates the cross product of this vector with another vector.
叉积。
The cross product.
计算此向量与另一个向量之间的距离。
Calculates the distance between this vector and another vector.
距离。
The distance.
按分量将此向量与另一个向量相除。
Divides this vector by another vector component-wise.
要相除的向量。
The vector to divide by.
按分量将此向量与另一个向量相除并更新此向量。
Divides this vector by another vector component-wise and updates this vector.
计算此向量与另一个向量的点积。
Calculates the dot product of this vector with another vector.
点积。
The dot product.
检查此向量是否近似(误差值:0.000001)等于另一个向量。
Checks if this vector is approximately equal to another vector (error value: 0.000001).
如果向量近似相等则返回true,否则返回false。
Returns true if the vectors are approximately equal, otherwise false.
检查此向量是否完全等于另一个向量。
Checks if this vector is exactly equal to another vector.
如果向量完全相等则返回true,否则返回false。
Returns true if the vectors are exactly equal, otherwise false.
线性插值此向量朝向另一个向量。
Linear interpolation of this vector towards another vector.
目标向量。
The target vector.
插值因子。
The interpolation factor.
计算此向量的模长。
Calculates the magnitude of this vector.
模长。
The magnitude.
计算此向量与另一个向量的按分量最大值。
Calculates the component-wise maximum of this vector and another vector.
计算此向量与另一个向量的按分量最小值。
Calculates the component-wise minimum of this vector and another vector.
按分量将此向量与另一个向量相乘。
Multiplies this vector with another vector component-wise.
要相乘的向量。
The vector to multiply by.
按分量将此向量与另一个向量相乘并更新此向量。
Multiplies this vector with another vector component-wise and updates this vector.
归一化此向量。
Normalizes this vector.
按标量缩放此向量。
Scales this vector by a scalar.
标量。
The scalar.
设置此向量的分量。
Sets the components of this vector.
新的x分量。
The new x component.
新的y分量。
The new y component.
新的z分量。
The new z component.
计算此向量的模长平方。
Calculates the squared magnitude of this vector.
模长平方。
The squared magnitude.
从此向量中减去另一个向量。
Subtracts another vector from this vector.
要相减的向量。
The vector to subtract.
从此向量中减去另一个向量并更新此向量。
Subtracts another vector from this vector and updates this vector.
将此向量转换为字符串。
Converts this vector to a string.
此向量的字符串表示形式。
The string representation of this vector.
计算并返回指向目标位置的向量。
Calculates and returns a vector pointing towards the target position.
目标位置的三维向量,表示目标点在游戏世界中的坐标。
The 3D vector of the target position, representing the coordinates of the target point in the game world.
返回一个从当前点指向目标点的三维向量。
Returns a 3D vector pointing from the current point to the target point.
Static
从极坐标创建一个新的GameVector3对象。
Creates a new GameVector3 object from polar coordinates.
向量的模长。
The magnitude of the vector.
xy平面上的角度(方位角)。
The angle in the xy-plane (azimuth).
z轴上的角度(极角)。
The angle from the z-axis (polar angle).
Zh
表示用于游戏开发的三维向量。该类提供了多种3D向量数学运算,包括加法、减法、乘法、除法、点积、叉积和向量插值。
En
Represents a three-dimensional vector for game development. This class provides various 3D vector mathematical operations, including addition, subtraction, multiplication, division, dot product, cross product, and vector interpolation.