Method | Description | |
---|---|---|
Abs ( Vector2 a ) : Vector2 |
Returns the absolute values of the specified vector.
|
|
Clamp ( Vector2 value, Vector2 min, Vector2 max ) : Vector2 |
Clamps the specified value.
|
|
CrossProduct ( ) : Vector2 |
Returns the vector cross product.
|
|
Dot ( Vector2 a, Vector2 b ) : float |
Returns the dot product for the specified vectors.
|
|
Equals ( object obj ) : bool |
Determines whether the specified System.Object is equal to this instance.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance.
|
|
Lerp ( Vector2 a, Vector2 b, float amount ) : Vector2 |
Linear interpolation between the two values.
|
|
Max ( Vector2 a, Vector2 b ) : Vector2 |
Returns the greater components of the two values.
|
|
Min ( Vector2 a, Vector2 b ) : Vector2 |
Returns the lesser components of the two values.
|
|
Negate ( Vector2 vector ) : Vector2 |
Negates the specified vector.
|
|
Normalize ( Vector2 a ) : Vector2 |
Normalizes the specified vector.
|
|
Normalize ( ) : void |
Normalizes this vector.
|
|
Reflect ( Vector2 vector, Vector2 normal ) : Vector2 |
Reflects the specified vector.
|
|
Rotate ( Vector2 vector, float angle ) : Vector2 |
Rotates the specified vector.
|
|
Round ( Vector2 vector ) : Vector2 |
Rounds the specified vector.
|
|
SmoothStep ( Vector2 a, Vector2 b, float amount ) : Vector2 |
Interpolates between two values using a cubic equation.
|
|
ToString ( ) : string |
Returns a System.String that represents this instance.
|
|
Translate ( Vector2 translation ) : void |
Translates the vector.
|
|
Truncate ( Vector2 a ) : Vector2 |
Truncates the specified vector and removes all decimal places.
|
|
Vector2 ( float value ) : System |
Initializes a new instance of the Vector2 struct.
|
|
Vector2 ( float x, float y ) : System |
Initializes a new instance of the Vector2 struct.
|
|
VectorProduct ( Vector2 left, Vector2 right ) : float |
Returns the vector product.
|
|
operator ( ) : Vector2 |
Implements the operator *.
|
|
operator ( ) : bool |
Implements the operator !=.
|
public static Abs ( Vector2 a ) : Vector2 | ||
a | Vector2 | The vector. |
return | Vector2 |
public static Clamp ( Vector2 value, Vector2 min, Vector2 max ) : Vector2 | ||
value | Vector2 | The value. |
min | Vector2 | The min. |
max | Vector2 | The max. |
return | Vector2 |
public static Dot ( Vector2 a, Vector2 b ) : float | ||
a | Vector2 | The first value. |
b | Vector2 | The second value. |
return | float |
public Equals ( object obj ) : bool | ||
obj | object | The |
return | bool |
public static Lerp ( Vector2 a, Vector2 b, float amount ) : Vector2 | ||
a | Vector2 | The first value. |
b | Vector2 | The second value. |
amount | float | The amount. |
return | Vector2 |
public static Max ( Vector2 a, Vector2 b ) : Vector2 | ||
a | Vector2 | The first value. |
b | Vector2 | The second value. |
return | Vector2 |
public static Min ( Vector2 a, Vector2 b ) : Vector2 | ||
a | Vector2 | The first value. |
b | Vector2 | The second value. |
return | Vector2 |
public static Negate ( Vector2 vector ) : Vector2 | ||
vector | Vector2 | The vector. |
return | Vector2 |
public static Normalize ( Vector2 a ) : Vector2 | ||
a | Vector2 | The vector. |
return | Vector2 |
public static Reflect ( Vector2 vector, Vector2 normal ) : Vector2 | ||
vector | Vector2 | The vector. |
normal | Vector2 | The normal. |
return | Vector2 |
public static Rotate ( Vector2 vector, float angle ) : Vector2 | ||
vector | Vector2 | The vector. |
angle | float | The angle. |
return | Vector2 |
public static Round ( Vector2 vector ) : Vector2 | ||
vector | Vector2 | The vector. |
return | Vector2 |
public static SmoothStep ( Vector2 a, Vector2 b, float amount ) : Vector2 | ||
a | Vector2 | The first value. |
b | Vector2 | The second value. |
amount | float | The amount. |
return | Vector2 |
public Translate ( Vector2 translation ) : void | ||
translation | Vector2 | The translation. |
return | void |
public static Truncate ( Vector2 a ) : Vector2 | ||
a | Vector2 | The vector. |
return | Vector2 |
public Vector2 ( float value ) : System | ||
value | float | The value. |
return | System |
public Vector2 ( float x, float y ) : System | ||
x | float | The x. |
y | float | The y. |
return | System |
public static VectorProduct ( Vector2 left, Vector2 right ) : float | ||
left | Vector2 | |
right | Vector2 | |
return | float |