Click or drag to resize

Vector2Extensions Class

Vector2 extensions.
Inheritance Hierarchy
SystemObject
  KitVector2Extensions

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static class Vector2Extensions
Request Example View Source

The Vector2Extensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAbs
Make all components positive.
Public methodStatic memberAddX
Add to the X-component and return the vector.
Public methodStatic memberAddY
Add to the Y-component and return the vector.
Public methodStatic memberClamp
Limit the vector between two other vectors.
Public methodStatic memberCopy
Copy values from another instance and return the vector.
Public methodStatic memberCopyX
Copy the X-component and return the vector.
Public methodStatic memberCopyY
Copy the Y-component and return the vector.
Public methodStatic memberInvertX
Invert the X-component and return the vector.
Public methodStatic memberInvertY
Invert the Y-component and return the vector.
Public methodStatic memberMax
Return the larger of the two components.
Public methodStatic memberMin
Return the smaller of the two components.
Public methodStatic memberScale
Scale the vector and return it.
Public methodStatic memberScaleX
Scale the X-component and return the vector.
Public methodStatic memberScaleY
Scale the Y-component and return the vector.
Public methodStatic memberSetX
Set the X-component and return the vector.
Public methodStatic memberSetY
Set the Y-component and return the vector.
Public methodStatic memberSwap
Swap the X & Y components and return the vector.
Public methodStatic memberToQuaternion
Make a rotation with the vector as euler angles.
Public methodStatic memberToVector3
Convert to Vector3.
Top
See Also

Reference