Vector2i Structure
From SFML.Net
SFML.Net
| Vector2i Structure |
Vector2i is an utility class for manipulating 2 dimensional
vectors with integer components
Namespace: SFML.System
Assembly: sfmlnet-system-2 (in sfmlnet-system-2.dll) Version: 2.2.0.0 (2.2.0)
The Vector2i type exposes the following members.
| Name | Description | |
|---|---|---|
| Equals(Object) |
Compare vector and object and checks if they are equal
(Overrides ValueTypeEquals(Object).) | |
| Equals(Vector2i) |
Compare two vectors and checks if they are equal
| |
| GetHashCode |
Provide a integer describing the object
(Overrides ValueTypeGetHashCode.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| ToString |
Provide a string describing the object
(Overrides ValueTypeToString.) |
| Name | Description | |
|---|---|---|
| Addition |
Operator + overload ; add two vectors
| |
| Division |
Operator / overload ; divide a vector by a scalar value
| |
| Equality |
Operator == overload ; check vector equality
| |
| (Vector2i to Vector2f) |
Explicit casting to another vector type
| |
| (Vector2i to Vector2u) |
Explicit casting to another vector type
| |
| Inequality |
Operator != overload ; check vector inequality
| |
| Multiply(Int32, Vector2i) |
Operator * overload ; multiply a scalar value by a vector
| |
| Multiply(Vector2i, Int32) |
Operator * overload ; multiply a vector by a scalar value
| |
| Subtraction |
Operator - overload ; subtracts two vectors
| |
| UnaryNegation |
Operator - overload ; returns the opposite of a vector
|