Vector2I Structure |
Namespace: NeoAxis
public struct Vector2I
The Vector2I type exposes the following members.
Name | Description | |
---|---|---|
Vector2I(Vector2I) |
Constructs a vector with another given vector.
| |
Vector2I(Int32, Int32) |
Constructs a vector with the given individual elements.
|
Name | Description | |
---|---|---|
Add |
Adds two vectors.
| |
AllNonZero |
Determines whether all components of a given vector are unequal to the zero.
| |
AnyNonZero |
Determines whether any component of a given vector is unequal to the zero.
| |
Clamp |
Restricts the current instance of Vector2I to be within a specified range and returns the clamped value.
| |
Cross(Vector2I, Vector2I) |
Calculates the cross product of two vectors.
| |
Cross(Vector2I, Vector2I, Vector2I) |
Calculates the cross product of two vectors.
| |
Divide(Int32, Vector2I, Vector2I) |
Divides a scalar by a vector.
| |
Divide(Vector2I, Vector2I, Vector2I) |
Divides the first vector by the second vector.
| |
Divide(Vector2I, Int32, Vector2I) |
Divides a vector by a given scalar.
| |
Dot(Vector2I, Vector2I) |
Calculates the dot product of two vectors.
| |
Dot(Vector2I, Vector2I, Int32) |
Calculates the dot product of two vectors.
| |
Equals(Object) |
Determines whether the specified object is equal to the current instance of Vector2I.
(Overrides ValueTypeEquals(Object).) | |
Equals(Vector2I, Int32) |
Determines whether the specified vector is equal to the current instance of Vector2I with a given precision.
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Max |
Returns a vector containing the largest components of the specified vectors.
| |
MaxComponent |
Returns the value of the largest component of the current instance of Vector2I.
| |
Min |
Returns a vector containing the smallest components of the specified vectors.
| |
MinComponent |
Returns the value of the smallest component of the current instance of Vector2I.
| |
Multiply(Int32, Vector2I, Vector2I) |
Multiplies a vector by a given scalar.
| |
Multiply(Vector2I, Vector2I, Vector2I) |
Multiplies two vectors together.
| |
Multiply(Vector2I, Int32, Vector2I) |
Multiplies a vector by a given scalar.
| |
Negate |
Reverses the direction of a given vector.
| |
Parse |
Converts a string representation of a vector into the equivalent Vector2I structure.
| |
Select |
Chooses one of two vectors depending on the pick1 value.
| |
Subtract |
Subtracts two vectors.
| |
ToString |
Returns a String that represents the current instance of Vector2I.
(Overrides ValueTypeToString.) | |
ToVector2 |
Converts the current instance of Vector2I into the equivalent Vector2 structure.
| |
ToVector2F |
Converts the current instance of Vector2I into the equivalent Vector2F structure.
|
Name | Description | |
---|---|---|
Addition |
Adds two vectors.
| |
Division(Int32, Vector2I) |
Divides a scalar by a vector.
| |
Division(Vector2I, Vector2I) |
Divides the first vector by the second vector.
| |
Division(Vector2I, Int32) |
Divides a vector by a given scalar.
| |
Equality |
Determines whether two given vectors are equal.
| |
Inequality |
Determines whether two given vectors are unequal.
| |
Multiply(Int32, Vector2I) |
Multiplies a vector by a given scalar.
| |
Multiply(Vector2I, Vector2I) |
Multiplies two vectors together.
| |
Multiply(Vector2I, Int32) |
Multiplies a vector by a given scalar.
| |
Subtraction |
Subtracts two vectors.
| |
UnaryNegation |
Reverses the direction of a given vector.
|
Name | Description | |
---|---|---|
One |
Returns the vector (1,1).
| |
X |
The X component of the vector.
| |
Y |
The Y component of the vector.
| |
Zero |
Returns the vector (0,0).
|
Name | Description | |
---|---|---|
MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |