SFML.Net
Vector2f Structure |
Vector2f is an utility class for manipulating 2 dimensional
vectors with float components
Namespace: SFML.System
Assembly: sfmlnet-system-2 (in sfmlnet-system-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
The Vector2f type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
Equals(Object) |
Compare vector and object and checks if they are equal
(Overrides ValueTypeEquals(Object).) | |
Equals(Vector2f) |
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.) |
Operators
Name | Description | |
---|---|---|
Addition |
Operator + overload ; add two vectors
| |
Division |
Operator / overload ; divide a vector by a scalar value
| |
Equality |
Operator == overload ; check vector equality
| |
(Vector2f to Vector2i) |
Explicit casting to another vector type
| |
(Vector2f to Vector2u) |
Explicit casting to another vector type
| |
Inequality |
Operator != overload ; check vector inequality
| |
Multiply(Single, Vector2f) |
Operator * overload ; multiply a scalar value by a vector
| |
Multiply(Vector2f, Single) |
Operator * overload ; multiply a vector by a scalar value
| |
Subtraction |
Operator - overload ; subtracts two vectors
| |
UnaryNegation |
Operator - overload ; returns the opposite of a vector
|
Fields
See Also