Click or drag to resize

Vector3 Methods

The Vector3 type exposes the following members.

Methods
  NameDescription
Public methodAdd(Vector3)
Vector3 addition
Public methodStatic memberAdd(Vector3, Vector3)
Vector3 addition
Public methodCross(Vector3)
Cross product of two Vector3s
Public methodStatic memberCross(Vector3, Vector3)
Cross product of two Vector3s
Public methodDot(Vector3)
Dot product of two Vector3s
Public methodStatic memberDot(Vector3, Vector3)
Dot product of two Vector3s
Public methodDotD(Vector3)
Dot product of two Vector3s
Public methodStatic memberDotD(Vector3, Vector3)
Dot product of two Vector3s
Public methodEquals(Object)
Vector3 exact equality - see EQ(Vector3, Vector3) for alternative
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3)
Vector3 exact equality - see EQ(Vector3, Vector3) for alternative
Public methodGetHashCode
Returns the hash code for the current Vector3.
(Overrides ValueTypeGetHashCode.)
Public methodLength
Length of Vector3
Public methodStatic memberLength(Vector3)
Length of Vector3
Public methodLengthD
Length of Vector3
Public methodStatic memberLengthD(Vector3)
Length of Vector3
Public methodLengthSq
Length squared of Vector3
Public methodStatic memberLengthSq(Vector3)
Length squared of Vector3
Public methodLengthSqD
Length squared of Vector3
Public methodStatic memberLengthSqD(Vector3)
Length squared of Vector3
Public methodLerp(Vector3, Double)
Linear interpolation between this Vector3 and another Vector3

This is most commonly used to find a point some fraction of the way along a line between two endpoints When t = 0 returns this. When t = 1 returns b. When t = 0.5 returns the point midway between this and b.

Public methodStatic memberLerp(Vector3, Vector3, Double)
Linear interpolation between two Vector3s

This is most commonly used to find a point some fraction of the way along a line between two endpoints When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns the point midway between a and b.

Public methodStatic memberLerp(Vector3, Vector3, Single)
Linear interpolation between two Vector3s

This is most commonly used to find a point some fraction of the way along a line between two endpoints When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns the point midway between a and b.

Public methodMaximize(Vector3)
Vector3 maximization - combination of the largest components
Public methodStatic memberMaximize(Vector3, Vector3)
Vector3 maximization - combination of the largest components
Public methodMinimize(Vector3)
Vector3 minimization - combination of the smallest components
Public methodStatic memberMinimize(Vector3, Vector3)
Vector3 minimization - combination of the smallest components
Public methodMultiply(Double)
Scale the X, Y and Z components of Vector3
Public methodMultiply(Single)
Scale the X, Y and Z components of Vector3
Public methodMultiply(Vector3)
Scale the X, Y, and Z components of Vector3.
Public methodStatic memberMultiply(Vector3, Vector3)
Scale the X, Y, and Z components of Vector3 .
Public methodStatic memberMultiply(Vector3, Double)
Scale the X, Y and Z components of Vector3
Public methodStatic memberMultiply(Vector3, Single)
Scale the X, Y and Z components of Vector3
Public methodStatic memberMultiplyAdd
Combined multiplication and addition
Public methodNegate
Vector3 in-place negation.
Public methodNormalize
Vector3 normalization - make its length be 1
Public methodStatic memberNormalize(Vector3)
Vector3 normalization - make its length be 1
Public methodScalarTriple(Vector3, Vector3)
Scalar triple product of three Vector3s
Public methodStatic memberScalarTriple(Vector3, Vector3, Vector3)
Scalar triple product of three Vector3s
Public methodScale(Double)
Scale the X, Y, and Z components of Vector3
Public methodScale(Single)
Scale the X, Y, and Z components of Vector3
Public methodScale(Vector3)
Scale the X, Y, and Z components of Vector3.
Public methodStatic memberScale(Vector3, Vector3)
Scale the X, Y, and Z components of Vector3 .
Public methodStatic memberScale(Vector3, Double)
Scale the X, Y, and Z components of Vector3
Public methodStatic memberScale(Vector3, Single)
Scale the X, Y, and Z components of Vector3
Public methodSubtract(Vector3)
Vector3 subtraction
Public methodStatic memberSubtract(Vector3, Vector3)
Vector3 subtraction
Public methodToString
Returns a string that represents the current Vector3.
(Overrides ValueTypeToString.)
Public methodStatic memberTransform
Transforms a Vector3 by the given Matrix
Public methodTransformCoordinate(Matrix)
Transform this Vector3 coordinate by Matrix
Public methodStatic memberTransformCoordinate(Vector3, Matrix)
Transform Vector3 coordinate by Matrix
Public methodTransformNormal(Matrix)
Transform this Vector3 normal by Matrix
Public methodTransformNormal(Quaternion)
Transform this Vector3 normal by Quaternion
Public methodStatic memberTransformNormal(Vector3, Matrix)
Transform Vector3 normal by Matrix
Public methodStatic memberTransformNormal(Vector3, Quaternion)
Transform Vector3 normal by Quaternion
Public methodVectorTriple(Vector3, Vector3)
Vector triple product of three Vector3s
Public methodStatic memberVectorTriple(Vector3, Vector3, Vector3)
Vector triple product of three Vector3s
Top
See Also