Vector3 Math
Calculates the angle between two vectors.
Inputs:
Outputs:
The smallest angle between the two vectors.
Vector3 Clamp Magnitude
Scales the input vector to the specified magnitude.
Inputs:
The target magnitude for the output vector.
Outputs:
Version of the input vector scaled so that its magnitude is equal to or less than Maxlength.
Calculates the cross product of two input vectors.
Inputs:
Outputs:
Vector which is perpendicular to the two input vectors
Vector3 Distance
Calculates the distance between two points in 3D space.
Inputs:
Second point in 3D space.
Outputs:
The distance between A and B.
Calculates the dot product of two input vectors.
Inputs:
Outputs:
Dot product of the two input vectors.
Linearly interpolates between two points.
Inputs:
Start value, returned when T = 0.
End value, returned when T = 1.
Outputs:
Vector3 Magnitude
Calculates the length of a given vector.
Inputs:
Outputs:
The length of the vector.
Vector3 Move Towards
Calculates a point between a current vector and a target vector, advancing towards the target by a specified maximum distance.
Inputs:
The maximum distance to move towards the target.
Outputs:
A point that has advanced Max Distance towards Target, having started at Current.
Vector3 Normalize
Scales the vector to have a magnitude of 1.
Inputs:
Outputs:
The scaled vector with a magnitude of 1.
Vector3 Signed Angle
Calculates the signed angle between two vectors in relation to a given axis.
Inputs:
The vector from which the angular difference is measured.
The vector to which the angular difference is measured.
A vector around which the other vectors are rotated.
Outputs:
The signed angle between From and To in degrees.
Spherically interpolates between two vectors.
Inputs:
Start value, returned when T = 0.
End value, returned when T = 1.
Outputs:
The interpolated Vector3.
Vector3 Smooth Damp
Gradually changes a vector towards a desired goal over time.
Inputs:
The approximate time over which to move from Current to Target.
Outputs:
The current rate of change.
The adjusted Current input.
Vector3 Sqr Magnitude
Returns the squared length of this vector.
Inputs:
Outputs:
The squared length of this vector.