Click or drag to resize

Vector2F Structure

Represents a two-dimensional vector which uses float values.

Namespace:  Syroot.Maths
Assembly:  Syroot.Maths (in Syroot.Maths.dll) Version: 1.5.0-alpha1
Syntax
public struct Vector2F : IEquatable<Vector2F>, 
	IEquatableByRef<Vector2F>, INearlyEquatable<Vector2F>, INearlyEquatableByRef<Vector2F>

The Vector2F type exposes the following members.

Constructors
  NameDescription
Public methodVector2F
Initializes a new instance of the Vector2F struct with the given values for the X and Y components.
Top
Properties
  NameDescription
Public propertyItem
Gets or sets the component at the given index.
Top
Methods
  NameDescription
Public methodEquals(Object)
Gets a value indicating whether the components of this Vector2F are the same as the components of the second specified Vector2F.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector2F)
Indicates whether the current Vector2F is equal to another Vector2F.
Public methodEquals(Vector2F)
Indicates whether the current Vector2F is equal to another Vector2F. Structures are passed by reference to avoid stack structure copying.
Public methodGetHashCode
Gets a hash code as an indication for object equality.
(Overrides ValueTypeGetHashCode.)
Public methodIntersects
Returns a value indicating whether the Vector2F lies within the provided RectangleF.
Public methodNearlyEquals(Vector2F)
Indicates whether the current Vector2F is nearly equal to another Vector2F.
Public methodNearlyEquals(Vector2F)
Indicates whether the current Vector2F is nearly equal to another Vector2F. Structures are passed by reference to avoid stack structure copying.
Public methodToString
Gets a string describing the components of this Vector2F.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the first Vector2F to the second one.
Public operatorStatic memberDivision(Vector2F, Vector2F)
Divides the first Vector2F through the second one.
Public operatorStatic memberDivision(Vector2F, Single)
Divides the given Vector2F through the scalar.
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified Vector2F are the same as the components of the second specified Vector2F.
Public operatorStatic member(Vector2 to Vector2F)
Implicit conversion from Vector2.
Public operatorStatic member(Vector2U to Vector2F)
Implicit conversion from Vector2U.
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Vector2F are not the same as the components of the second specified Vector2F.
Public operatorStatic memberMultiply(Vector2F, Vector2F)
Multiplicates the first Vector2F by the second one.
Public operatorStatic memberMultiply(Vector2F, Single)
Multiplicates the given Vector2F by the scalar.
Public operatorStatic memberSubtraction
Subtracts the first Vector2F from the second one.
Public operatorStatic memberUnaryNegation
Negates the given Vector2F.
Public operatorStatic memberUnaryPlus
Returns the given Vector2F.
Top
Fields
  NameDescription
Public fieldStatic memberHalf
A Vector2F with the X and Y components being 0.5f.
Public fieldStatic memberOne
A Vector2F with the X and Y components being 1f.
Public fieldStatic memberSizeInBytes
Gets the size of this structure.
Public fieldStatic memberValueCount
Gets the amount of value types required to represent this structure.
Public fieldX
The X float component.
Public fieldY
The Y float component.
Public fieldStatic memberZero
A Vector2F with the X and Y components being 0f.
Top
See Also