For two vectors, find a vector that is simultaneously parallel to both vectors.
The magnitude of the cross product is equal to
the product of the magnitudes of both vectors
and the sine of the angle between them.
For two vectors, find a vector that is simultaneously parallel to both vectors.
The magnitude of the cross product is equal to
the product of the magnitudes of both vectors
and the sine of the angle between them.
If the two original vectors are parallel or antiparallel, the cross product is a zero vector.
Due to handiness rules, two non-zero cross product vectors that are antiparallel to each other can be calculated.
the first vector
the second vector
the cross product
Calculate the actual distance between two points.
Calculate the actual distance between two points.
the first point
the second point
the distance
Calculate the squared distance between two points.
Calculate the squared distance between two points. Though some time is saved care must be taken that any comparative distance is also squared.
the first point
the second point
the distance
Given two vectors, find their dot product.
The dot product is the sum of the products of the corresponding component parts of two vectors.
Given two vectors, find their dot product.
The dot product is the sum of the products of the corresponding component parts of two vectors.
It is equal to the product of the Euclidean magnitude of the vectors and cosine of the angle between them.
If the dot product of two vectors of non-zero magnitude is 0, then the vectors are perpendicular to each other.
the first vector
the second vector
the dot product
Calculate the actual magnitude of a vector.
Calculate the actual magnitude of a vector.
the vector
the magnitude
Calculate the squared magnitude of a vector.
Calculate the squared magnitude of a vector. Though some time is saved care must be taken that any comparative magnitude is also squared.
the vector
the magnitude
Perform the x-axis rotation of a Vector3
element where the angle of rotation is assumed in radians.
Perform the x-axis rotation of a Vector3
element where the angle of rotation is assumed in radians.
a mathematical vector representing direction
a rotation angle, in radians
the rotated vector
Vector3.Rx(Vector3, Float)
Perform the x-axis rotation of a Vector3
element where the angle of rotation is assumed in degrees.
Perform the x-axis rotation of a Vector3
element where the angle of rotation is assumed in degrees.
a mathematical vector representing direction
a rotation angle, in degrees
the rotated vector
Vector3.RxRadians(Vector3, Double)
Perform the y-axis rotation of a Vector3
element where the angle of rotation is assumed in radians.
Perform the y-axis rotation of a Vector3
element where the angle of rotation is assumed in radians.
a mathematical vector representing direction
a rotation angle, in radians
the rotated vector
Vector3.Ry(Vector3, Float)
Perform the x-axis rotation of a Vector3
element where the angle of rotation is assumed in degrees.
Perform the x-axis rotation of a Vector3
element where the angle of rotation is assumed in degrees.
a mathematical vector representing direction
a rotation angle, in degrees
the rotated vector
Vector3.Ry(Vector3, Double)
Perform the z-axis rotation of a Vector3
element where the angle of rotation is assumed in radians.
Perform the z-axis rotation of a Vector3
element where the angle of rotation is assumed in radians.
a mathematical vector representing direction
a rotation angle, in radians
the rotation vector
Vector3.Rz(Vector3, Float)
Perform the x-axis rotation of a Vector3
element where the angle of rotation is assumed in degrees.
Perform the x-axis rotation of a Vector3
element where the angle of rotation is assumed in degrees.
a mathematical vector representing direction
a rotation angle, in degrees
the rotated vector
Vector3.Rz(Vector3, Double)
Given two vectors, find the scalar value of the projection of one vector on the other.
The value of the resulting scalar is the magnitude of the vector resulting from a vector projection of vec1
onto vec2
.
Given two vectors, find the scalar value of the projection of one vector on the other.
The value of the resulting scalar is the magnitude of the vector resulting from a vector projection of vec1
onto vec2
.
For perpendicular vectors, the scalar projection result will be the same as the dot product result - zero.
A positive value indicates a projected vector in the same direction as vec2
;
a negative value indicates an antiparallel vector.
the vector being projected
the vector projected onto
the magnitude of the resulting projected vector
VectorProjection
Given a vector, find that's vector's unit vector.
A unit vector is a vector in the direction of the original vector but with a magnitude of 1.
Given a vector, find that's vector's unit vector.
A unit vector is a vector in the direction of the original vector but with a magnitude of 1.
the original vector
the unit vector; if the original vector has no magnitude, a zero-vector is returned
Given two vectors, find the projection of one vector on the other.
The vector projection of vec1
on vec2
produces a vector that is
the direction of (parallel to) vec2
with a magnitude equal to the product of vec1
and the cosine of the angle between the two vectors.
Given two vectors, find the projection of one vector on the other.
The vector projection of vec1
on vec2
produces a vector that is
the direction of (parallel to) vec2
with a magnitude equal to the product of vec1
and the cosine of the angle between the two vectors.
the vector being projected
the vector projected onto
the resulting projected vector
ScalarProjection
A common vector object that only concerns itself with rotation around the world-up axis or the "world up" coordinate direction.
A common vector object that only concerns itself with rotation around the world-up axis or the "world up" coordinate direction.
the third coordinate
a Vector3
object