Click or drag to resize
Vector3F Structure
3-dimensional float vector.

Namespace: Slash.Math.Algebra.Vectors
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
[SerializableAttribute]
public struct Vector3F

The Vector3F type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyIsNonZero
Indicates if at least one vector component is not zero.
Public propertyIsZero
Indicates if all vector components are zero.
Public propertyMagnitude
Magnitude of the vector.
Public propertySquareMagnitude
Square magnitude of the vector.
Top
Methods
  NameDescription
Public methodCalculateDotProduct
Calculates the dot product of this and the passed vector. See http://en.wikipedia.org/wiki/Dot_product for more details.
Public methodStatic memberDot
Calculates the dot product of the two passed vectors. See http://en.wikipedia.org/wiki/Dot_product for more details.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3F)
Determines whether the specified Vector3F is equal to the current Vector3F.
Public methodGetDistance
Calculates the distance between this and the passed vector.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ValueTypeGetHashCode.)
Public methodGetNormalized
Returns the normalized vector.
Public methodGetSquareDistance
Calculates the square distance between this and the passed vector.
Public methodStatic memberMax
Returns a vector that is made from the largest components of two vectors.
Public methodStatic memberMin
Returns a vector that is made from the smallest components of two vectors.
Public methodNormalize
Normalizes this vector.
Public methodToString
Returns a string that represents the current object.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Sums the components of the passed vectors and returns the resulting vector.
Public operatorStatic memberDivision
Divides each component of the passed vector by the passed value.
Public operatorStatic memberEquality
Indicates if the two passed vectors are equal.
Public operatorStatic memberInequality
Indicates if the two passed vectors are not equal.
Public operatorStatic memberMultiply(Single, Vector3F)
Multiplies each vector component with the passed float value.
Public operatorStatic memberMultiply(Vector3F, Vector3F)
Multiplies each vector component of the two passed vectors.
Public operatorStatic memberMultiply(Vector3F, Single)
Multiplies each vector component with the passed float value.
Public operatorStatic memberSubtraction
Subtracts the components of the second passed vector from the first passed.
Public operatorStatic memberUnaryNegation
Negates each component of the passed vector.
Top
Fields
  NameDescription
Public fieldStatic memberForward
Unrotated forward vector.
Public fieldStatic memberOne
All vector components are 1.
Public fieldStatic memberRight
Unrotated side vector.
Public fieldStatic memberUp
Unrotated up vector.
Public fieldX
X component.
Public fieldY
Y component.
Public fieldZ
Z component.
Public fieldStatic memberZero
All vector components are 0.
Top
Extension Methods
  NameDescription
Public Extension MethodToVector2F
Returns the 2D representation of this 3D vector (i.e. x and y coordinates).
(Defined by VectorExtensions.)
Public Extension MethodToVector3
Converts the specified framework vector to an Unity vector.
(Defined by MathConversionExtensions.)
Top
See Also