|
static Vector3 | ToXZVector3 (this Vector2 self) |
| Convert this Vector2 to Vector3 where X = X, Y = 0, Z = Y More...
|
|
static Vector2 | With (this Vector2 self, float? x=null, float? y=null) |
| Set a specific value of the vector More...
|
|
static Vector2 | Add (this Vector2 self, float? x=null, float? y=null) |
| add to a specific value of the vector More...
|
|
static Vector2 | ClampMagnitude (this Vector2 self, float maxForce) |
| Clamp the magnitude of the vector More...
|
|
static Vector2 | Closest (this Vector2 self, Vector2 a, Vector2 b) |
| Get the closest vector from self More...
|
|
static Vector2 | Round (this Vector2 self) |
| Round the Vector3 More...
|
|
static Vector2 | Floor (this Vector2 self) |
| Floor the Vector3 More...
|
|
static Vector2 | Multiply (this Vector2 self, Vector2 other) |
| Multiply the Vector3 by a scalar More...
|
|
static Vector2 | Positive (this Vector2 self) |
| Return the vector with absolute values More...
|
|
static Vector2 | Negative (this Vector2 self) |
| Return the vector with negative values More...
|
|
◆ Add()
static Vector2 JUtils.Vector2Extensions.Add |
( |
this Vector2 |
self, |
|
|
float? |
x = null , |
|
|
float? |
y = null |
|
) |
| |
|
inlinestatic |
add to a specific value of the vector
◆ ClampMagnitude()
static Vector2 JUtils.Vector2Extensions.ClampMagnitude |
( |
this Vector2 |
self, |
|
|
float |
maxForce |
|
) |
| |
|
inlinestatic |
Clamp the magnitude of the vector
◆ Closest()
static Vector2 JUtils.Vector2Extensions.Closest |
( |
this Vector2 |
self, |
|
|
Vector2 |
a, |
|
|
Vector2 |
b |
|
) |
| |
|
inlinestatic |
Get the closest vector from self
- Parameters
-
a | The first target to check |
">
<param name="b">The second target to check
- Returns
- The closest vector
◆ Floor()
static Vector2 JUtils.Vector2Extensions.Floor |
( |
this Vector2 |
self | ) |
|
|
inlinestatic |
Floor the Vector3
- Returns
- The rounded position
◆ Multiply()
static Vector2 JUtils.Vector2Extensions.Multiply |
( |
this Vector2 |
self, |
|
|
Vector2 |
other |
|
) |
| |
|
inlinestatic |
Multiply the Vector3 by a scalar
◆ Negative()
static Vector2 JUtils.Vector2Extensions.Negative |
( |
this Vector2 |
self | ) |
|
|
inlinestatic |
Return the vector with negative values
- Returns
- The negative position
◆ Positive()
static Vector2 JUtils.Vector2Extensions.Positive |
( |
this Vector2 |
self | ) |
|
|
inlinestatic |
Return the vector with absolute values
- Returns
- The absolute position
◆ Round()
static Vector2 JUtils.Vector2Extensions.Round |
( |
this Vector2 |
self | ) |
|
|
inlinestatic |
Round the Vector3
- Returns
- The rounded position
◆ ToXZVector3()
static Vector3 JUtils.Vector2Extensions.ToXZVector3 |
( |
this Vector2 |
self | ) |
|
|
inlinestatic |
Convert this Vector2 to Vector3 where X = X, Y = 0, Z = Y
- Returns
- A vector3 where X = X, Y = 0, Z = Y
◆ With()
static Vector2 JUtils.Vector2Extensions.With |
( |
this Vector2 |
self, |
|
|
float? |
x = null , |
|
|
float? |
y = null |
|
) |
| |
|
inlinestatic |
Set a specific value of the vector
The documentation for this class was generated from the following file: