This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
VRageMath.Vector2.Normalize
Morten Aune Lyrstad edited this page Oct 10, 2019
·
16 revisions
← Index ← Namespace Index ← Vector2
public void Normalize()
Turns the current vector into a unit vector. The result is a vector one unit in length pointing in the same direction as the original vector.
public static Vector2 Normalize(Vector2 value)
Creates a unit vector from the specified vector. The result is a vector one unit in length pointing in the same direction as the original vector.
- Vector2 value
public static void Normalize(ref Vector2 value, out Vector2 result)
Creates a unit vector from the specified vector, writing the result to a user-specified variable. The result is a vector one unit in length pointing in the same direction as the original vector.
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!