13static inline Eigen::Vector3f
14stereographic_unprojection(
float sg_x,
float sg_y)
19 float denom = (1 + X * X + Y * Y);
21 float x = (2 * X) / denom;
22 float y = (2 * Y) / denom;
23 float z = (-1 + X * X + Y * Y) / denom;
Interoperability helpers connecting internal math types and Eigen.