-
Notifications
You must be signed in to change notification settings - Fork 125
VRageMath.Vector3D.Dot
public double Dot(Vector3D vector1, Vector3D vector2)
Calculates the dot product of two vectors. If the two vectors are unit vectors, the dot product returns a doubleing 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.
public double Dot(Vector3D vector1, Vector3 vector2)
public void Dot(ref Vector3D vector1, ref Vector3D vector2, ref double result)
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 doubleing 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.
public void Dot(ref Vector3D vector1, ref Vector3 vector2, ref double result)
public void Dot(ref Vector3 vector1, ref Vector3D vector2, ref double result)
public double Dot(Vector3D v)
- Vector3D v
public double Dot(Vector3 v)
- Vector3 v
public double Dot(ref Vector3D v)
- Vector3D v
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!