Vector2Extensions Class |
Namespace: Kit
The Vector2Extensions type exposes the following members.
| Name | Description | |
|---|---|---|
| Abs | Make all components positive. | |
| AddX | Add to the X-component and return the vector. | |
| AddY | Add to the Y-component and return the vector. | |
| Clamp | Limit the vector between two other vectors. | |
| Copy | Copy values from another instance and return the vector. | |
| CopyX | Copy the X-component and return the vector. | |
| CopyY | Copy the Y-component and return the vector. | |
| InvertX | Invert the X-component and return the vector. | |
| InvertY | Invert the Y-component and return the vector. | |
| Max | Return the larger of the two components. | |
| Min | Return the smaller of the two components. | |
| Scale | Scale the vector and return it. | |
| ScaleX | Scale the X-component and return the vector. | |
| ScaleY | Scale the Y-component and return the vector. | |
| SetX | Set the X-component and return the vector. | |
| SetY | Set the Y-component and return the vector. | |
| Swap | Swap the X & Y components and return the vector. | |
| ToQuaternion | Make a rotation with the vector as euler angles. | |
| ToVector3 | Convert to Vector3. |