operator-#

inline Vec3 operator-(const Point3 &lhs, const Point3 &rhs)#

Computes the vector from one point to another.

Parameters:
  • lhs[in] The starting point.

  • rhs[in] The ending point.

Returns:

A Vec3 representing the displacement from lhs to rhs.