Click or drag to resize

Vector2I Methods

The Vector2I type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAdd Adds two vectors.
Public methodStatic memberAllNonZero Determines whether all components of a given vector are unequal to the zero.
Public methodStatic memberAnyNonZero Determines whether any component of a given vector is unequal to the zero.
Public methodClamp Restricts the current instance of Vector2I to be within a specified range and returns the clamped value.
Public methodStatic memberCross(Vector2I, Vector2I) Calculates the cross product of two vectors.
Public methodStatic memberCross(Vector2I, Vector2I, Vector2I) Calculates the cross product of two vectors.
Public methodStatic memberDivide(Int32, Vector2I, Vector2I) Divides a scalar by a vector.
Public methodStatic memberDivide(Vector2I, Vector2I, Vector2I) Divides the first vector by the second vector.
Public methodStatic memberDivide(Vector2I, Int32, Vector2I) Divides a vector by a given scalar.
Public methodStatic memberDot(Vector2I, Vector2I) Calculates the dot product of two vectors.
Public methodStatic memberDot(Vector2I, Vector2I, Int32) Calculates the dot product of two vectors.
Public methodEquals(Object) Determines whether the specified object is equal to the current instance of Vector2I.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Vector2I, Int32) Determines whether the specified vector is equal to the current instance of Vector2I with a given precision.
Public methodGetHashCode Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberMax Returns a vector containing the largest components of the specified vectors.
Public methodMaxComponent Returns the value of the largest component of the current instance of Vector2I.
Public methodStatic memberMin Returns a vector containing the smallest components of the specified vectors.
Public methodMinComponent Returns the value of the smallest component of the current instance of Vector2I.
Public methodStatic memberMultiply(Int32, Vector2I, Vector2I) Multiplies a vector by a given scalar.
Public methodStatic memberMultiply(Vector2I, Vector2I, Vector2I) Multiplies two vectors together.
Public methodStatic memberMultiply(Vector2I, Int32, Vector2I) Multiplies a vector by a given scalar.
Public methodStatic memberNegate Reverses the direction of a given vector.
Public methodStatic memberParse Converts a string representation of a vector into the equivalent Vector2I structure.
Public methodStatic memberSelect Chooses one of two vectors depending on the pick1 value.
Public methodStatic memberSubtract Subtracts two vectors.
Public methodToString Returns a String that represents the current instance of Vector2I.
(Overrides ValueTypeToString)
Public methodToVector2 Converts the current instance of Vector2I into the equivalent Vector2 structure.
Public methodToVector2F Converts the current instance of Vector2I into the equivalent Vector2F structure.
Public methodStatic memberTryParse 
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also