In this article I will explain all about Vector3.
Vector3 is a 3-components based struct which is generally used in 3d space(x,y,z).
So vector3 is much more used in loading models and 3d transformations.
As we analyze vector3' structure we will figure out that most of the structure is already being used by Vector2 so some will be the same.
We can add 2 Vector3 variable:

Returns a vector3(0,0,1):
BaryCentric Calculation:

Calculating CatmullRom:

Using Clamp:

Calculate Cross Product:

Calculate Distance:

Calculate Distance Squared:

Calculating Divide:

Calculating Dot Product of the given Vector3:

Setting Down Vector3(0,-1,0):
Setting Forward Vector3(0,0,-1):
Using Hermite to perform a spline interpolation:












Join the conversation! Your thoughts help the community grow.