Vector2f Structure

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
public struct Vector2f : IEquatable<Vector2f>
Public Structure Vector2f
	Implements IEquatable(Of Vector2f)
public value class Vector2f : IEquatable<Vector2f>
[<SealedAttribute>]
type Vector2f =  
    struct
        interface IEquatable<Vector2f>
    end

The Vector2f type exposes the following members.

Constructors
  NameDescription
Public methodVector2f
Construct the vector from its coordinates
Top
Methods
  NameDescription
Public methodEquals(Object)
Compare vector and object and checks if they are equal
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector2f)
Compare two vectors and checks if they are equal
Public methodGetHashCode
Provide a integer describing the object
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Provide a string describing the object
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Operator + overload ; add two vectors
Public operatorStatic memberDivision
Operator / overload ; divide a vector by a scalar value
Public operatorStatic memberEquality
Operator == overload ; check vector equality
Public operatorStatic member(Vector2f to Vector2i)
Explicit casting to another vector type
Public operatorStatic member(Vector2f to Vector2u)
Explicit casting to another vector type
Public operatorStatic memberInequality
Operator != overload ; check vector inequality
Public operatorStatic memberMultiply(Single, Vector2f)
Operator * overload ; multiply a scalar value by a vector
Public operatorStatic memberMultiply(Vector2f, Single)
Operator * overload ; multiply a vector by a scalar value
Public operatorStatic memberSubtraction
Operator - overload ; subtracts two vectors
Public operatorStatic memberUnaryNegation
Operator - overload ; returns the opposite of a vector
Top
Fields
  NameDescription
Public fieldX
X (horizontal) component of the vector
Public fieldY
Y (vertical) component of the vector
Top
See Also