Property | Type | Description | |
---|---|---|---|
X | float | ||
Y | float |
Method | Description | |
---|---|---|
Abs ( ) : |
Return a new vector that has positive components.
|
|
Abs ( |
||
AbsLocal ( ) : void | ||
AbsToOut ( |
||
Add ( |
Return the sum of this vector and another; does not alter either one.
|
|
AddLocal ( |
Add another vector to this one and returns result - alters this vector.
|
|
AddLocal ( float x, float y ) : |
Adds values to this vector and returns result - alters this vector.
|
|
Clone ( ) : |
Return a copy of this vector.
|
|
Cross ( |
||
Cross ( float s, |
||
Cross ( |
||
CrossToOut ( |
||
CrossToOut ( float s, |
||
CrossToOutUnsafe ( |
||
CrossToOutUnsafe ( float s, |
||
Dot ( |
||
Equals ( Object obj ) : bool | ||
GetHashCode ( ) : int | ||
Length ( ) : float |
Return the length of this vector.
|
|
LengthSquared ( ) : float |
Return the squared length of this vector.
|
|
Max ( |
||
MaxToOut ( |
||
Min ( |
||
MinToOut ( |
||
Mul ( float a ) : |
Return this vector multiplied by a scalar; does not alter this vector.
|
|
MulLocal ( float a ) : |
Multiply this vector by a number and return result - alters this vector.
|
|
Negate ( ) : |
Return the negation of this vector; does not alter this vector.
|
|
NegateLocal ( ) : |
Flip the vector and return it - alters this vector.
|
|
NegateToOut ( |
||
Normalize ( ) : float |
Normalize this vector and return the length before normalization. Alters this vector.
|
|
Set ( |
Set this vector to another vector.
|
|
Set ( float x, float y ) : |
Set the vector component-wise.
|
|
SetZero ( ) : void |
Zero out this vector.
|
|
Skew ( ) : |
Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
|
|
Skew ( |
Get the skew vector such that dot(skew_vec, other) == cross(vec, other)
|
|
Sub ( |
Return the difference of this vector and another; does not alter either one.
|
|
SubLocal ( |
Subtract another vector from this one and return result - alters this vector.
|
|
ToString ( ) : String | ||
Vec2 ( ) : System | ||
Vec2 ( |
||
Vec2 ( float x, float y ) : System |
Method | Description | |
---|---|---|
FloatToIntBits ( float number ) : int |
public static AbsToOut ( |
||
a | ||
result | ||
return | void |
public static Cross ( |
||
a | ||
s | float | |
return |
public static Cross ( float s, |
||
s | float | |
a | ||
return |
public static Cross ( |
||
a | ||
b | ||
return | float |
public static CrossToOut ( |
||
a | ||
s | float | |
result | ||
return | void |
public static CrossToOut ( float s, |
||
s | float | |
a | ||
result | ||
return | void |
public static CrossToOutUnsafe ( |
||
a | ||
s | float | |
result | ||
return | void |
public static CrossToOutUnsafe ( float s, |
||
s | float | |
a | ||
result | ||
return | void |
public static MaxToOut ( |
||
a | ||
b | ||
result | ||
return | void |
public static MinToOut ( |
||
a | ||
b | ||
result | ||
return | void |
public static NegateToOut ( |
||
a | ||
result | ||
return | void |