• Calculates and returns the dot product of two 3D vectors.

    The dot product is a scalar value computed as the sum of the products of the corresponding elements of the two vectors. This operation is widely used in many algorithms, including determining angles between vectors.

    Parameters

    • u: Vec3

      The first 3D vector.

    • v: Vec3

      The second 3D vector.

    Returns number

    The dot product of the two vectors.