See Vector3Base.dotProduct.
double Vector3DotProduct(Vector3StructType v1, Vector3StructType v2) => v1.dotProduct(v2);