Click or drag to resize

Vector3F Structure

Represents a three-dimensional vector which uses float values.

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

The Vector3F type exposes the following members.

Constructors
  NameDescription
Public methodVector3F
Initializes a new instance of the Vector3F struct with the given values for the X, Y and Z components.
Top
Properties
  NameDescription
Public propertyItem
Gets or sets the component at the given index.
Public propertyLength
Gets the length of this vector.
Top
Methods
  NameDescription
Public methodAngle(Vector3F)
Gets the angle between this and the other vector.
Public methodAngle(Vector3F)
Gets the angle between this and the other vector.
Public methodCross(Vector3F)
Gets the cross product between this and the other vector.
Public methodCross(Vector3F)
Gets the cross product between this and the other vector.
Public methodDot(Vector3F)
Gets the dot product between this and the other vector.
Public methodDot(Vector3F)
Gets the dot product between this and the other vector.
Public methodEquals(Object)
Gets a value indicating whether the components of this Vector3F are the same as the components of the second specified Vector3F.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3F)
Indicates whether the current Vector3F is equal to another Vector3F.
Public methodEquals(Vector3F)
Indicates whether the current Vector3F is equal to another Vector3F. 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(Vector3F)
Indicates whether the current Vector3F is nearly equal to another Vector3F.
Public methodNearlyEquals(Vector3F)
Indicates whether the current Vector3F is nearly equal to another Vector3F. Structures are passed by reference to avoid stack structure copying.
Public methodNormalize
Normalizes the length of this vector.
Public methodNormalized
Returns a normalized version of this vector.
Public methodToString
Gets a string describing the components of this Vector3F.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the first Vector3F to the second one.
Public operatorStatic memberDivision(Vector3F, Vector3F)
Divides the first Vector3F through the second one.
Public operatorStatic memberDivision(Vector3F, Single)
Divides the given Vector3F through the scalar.
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified Vector3F are the same as the components of the second specified Vector3F.
Public operatorStatic member(Vector3 to Vector3F)
Implicit conversion from Vector3.
Public operatorStatic member(Vector3U to Vector3F)
Implicit conversion from Vector3U.
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Vector3F are not the same as the components of the second specified Vector3F.
Public operatorStatic memberMultiply(Vector3F, Vector3F)
Multiplicates the first Vector3F by the second one.
Public operatorStatic memberMultiply(Vector3F, Single)
Multiplicates the given Vector3F by the scalar.
Public operatorStatic memberSubtraction
Subtracts the first Vector3F from the second one.
Public operatorStatic memberUnaryNegation
Negates the given Vector3F.
Public operatorStatic memberUnaryPlus
Returns the given Vector3F.
Top
Fields
  NameDescription
Public fieldStatic memberOne
A Vector3F with the X, Y and Z 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 fieldZ
The Z float component.
Public fieldStatic memberZero
A Vector3F with the X, Y and Z components being 0f.
Top
See Also