Click or drag to resize

Vector4F Structure

Represents a four-dimensional vector which uses float values.

Namespace:  Syroot.Maths
Assembly:  Syroot.Maths (in Syroot.Maths.dll) Version: 1.5.3
Syntax
public struct Vector4F : IEquatable<Vector4F>, 
	IEquatableByRef<Vector4F>, INearlyEquatable<Vector4F>, INearlyEquatableByRef<Vector4F>

The Vector4F type exposes the following members.

Constructors
  NameDescription
Public methodVector4F
Initializes a new instance of the Vector4F struct with the given values for the X, Y, Z and W 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 Vector4F are the same as the components of the second specified Vector4F.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector4F)
Indicates whether the current Vector4F is equal to another Vector4F.
Public methodEquals(Vector4F)
Indicates whether the current Vector4F is equal to another Vector4F. 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 methodNearlyEquals(Vector4F)
Indicates whether the current Vector4F is nearly equal to another Vector4F.
Public methodNearlyEquals(Vector4F)
Indicates whether the current Vector4F is nearly equal to another Vector4F. Structures are passed by reference to avoid stack structure copying.
Public methodToString
Gets a string describing the components of this Vector4F.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the first Vector4F to the second one.
Public operatorStatic memberDivision(Vector4F, Vector4F)
Divides the first Vector4F through the second one.
Public operatorStatic memberDivision(Vector4F, Single)
Divides the given Vector4F through the scalar.
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified Vector4F are the same as the components of the second specified Vector4F.
Public operatorStatic member(Vector4 to Vector4F)
Implicit conversion from Vector4.
Public operatorStatic member(Vector4U to Vector4F)
Implicit conversion from Vector4U.
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Vector4F are not the same as the components of the second specified Vector4F.
Public operatorStatic memberMultiply(Vector4F, Vector4F)
Multiplicates the first Vector4F by the second one.
Public operatorStatic memberMultiply(Vector4F, Single)
Multiplicates the given Vector4F by the scalar.
Public operatorStatic memberSubtraction
Subtracts the first Vector4F from the second one.
Public operatorStatic memberUnaryNegation
Negates the given Vector4F.
Public operatorStatic memberUnaryPlus
Returns the given Vector4F.
Top
Fields
  NameDescription
Public fieldStatic memberOne
A Vector4F with the X, Y, Z and W 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 fieldW
The W float component.
Public fieldX
The X float component.
Public fieldY
The Y float component.
Public fieldZ
The Z float component.
Public fieldStatic memberZero
A Vector4F with the X, Y, Z and W components being 0f.
Top
See Also