Vector3Dot Method (Vector3, Vector3, Single) |
[This is preliminary documentation and is subject to change.]
Calculates the dot product of two vectors and writes the result to a user-specified variable. If the two vectors are unit vectors, the dot product returns a floating point value between -1 and 1 that can be used to determine some properties of the angle between two vectors. For example, it can show whether the vectors are orthogonal, parallel, or have an acute or obtuse angle between them.
Namespace: VRageMathAssembly: VRage.Math (in VRage.Math.dll) Version: 1.0.0.0
Syntax public static void Dot(
ref Vector3 vector1,
ref Vector3 vector2,
out float result
)
Parameters
- vector1
- Type: VRageMathVector3
Source vector. - vector2
- Type: VRageMathVector3
Source vector. - result
- Type: SystemSingle
[OutAttribute] The dot product of the two vectors.
See Also