Vector2 Structure |
Namespace: Lumiscaphe.Workshop.Interop
The Vector2 type exposes the following members.
Name | Description | |
---|---|---|
Vector2 |
Initializes a new instance of the Vector2 structure with x and y coordinates.
|
Name | Description | |
---|---|---|
Absolute |
Gets the absolute values vector.
| |
Inversed |
Gets the inversed vector.
| |
Length |
Gets the length of the vector.
| |
Negated |
Gets the negated vector.
| |
Normalized |
Gets the normalized vector.
| |
SmallestComponentAxis |
Gets the smallest component axis.
| |
Square |
Gets the square length of the vector.
|
Name | Description | |
---|---|---|
Add |
Add a vector to the vector.
| |
Angle |
Computes the angle between the two vectors.
| |
Clamp |
Clamps the vector components between a minimum and a maximum values.
| |
CrossProduct |
Computes the cross product of the two vectors .
| |
Divide(Single) |
Divide the vector by a scalar.
| |
Divide(Vector2) |
Divide the vector by a vector.
| |
DotProduct |
Computes the dot product of the two vectors.
| |
Equal |
Tells if the two vector are equals.
| |
Equals |
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).) | |
GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasAGreaterComponentThan |
Determines whether the vector has a greater component than the specified vector.
| |
HasASmallerComponentThan |
Determines whether the vector has a smaller component than the specified vector.
| |
Maximum |
Gets the maximum vector values of the two vectors.
| |
Minimum |
Gets the minimum vector values of the two vectors.
| |
Multiply(Single) |
Multiply the vector by a scalar.
| |
Multiply(Vector2) |
Multiply the vector by a vector.
| |
Subtract |
Subtract a vector to the vector.
| |
ToString |
Format the Vector2 to a String.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Addition |
Add operator between two vectors.
| |
BitwiseOr |
Components divide operator between the two vectors.
| |
Division |
Divide operator between a vector and a scalar.
| |
Equality |
Equal operator between the two vectors.
| |
ExclusiveOr |
Cross product operator between the two vectors.
| |
GreaterThan |
Greater than operator between the two vectors.
| |
Inequality |
Difference operator between the two vectors.
| |
LessThan |
Less than operator between the two vectors.
| |
Modulus |
Components multiply operator between the two vectors.
| |
Multiply(Single, Vector2) |
Multiply operator between a scalar and a vector.
| |
Multiply(Vector2, Vector2) |
Dot product operator between the two vectors.
| |
Multiply(Vector2, Single) |
Multiply operator between a vector and a scalar.
| |
OnesComplement |
Normalize operator.
| |
Subtraction |
Subtract operator between the two vectors.
| |
UnaryNegation |
Negate operator.
| |
UnaryPlus |
Plus operator.
|
Name | Description | |
---|---|---|
One |
The one vector.
| |
X |
Gets or sets the x-coordinate.
| |
XAxis |
The x-axis vector.
| |
Y |
Gets or sets the y-coordinate.
| |
YAxis |
The y-axis vector.
| |
Zero |
The zero vector.
|