operator+#

inline Point3 operator+(const Point3 &lhs, const Point3 &rhs)#

Adds two points component-wise.

Note

This operation is mathematically unusual for points but provided for convenience.

Parameters:
  • lhs[in] The first point.

  • rhs[in] The second point.

Returns:

A new Point3 with components as the sum of corresponding components.