pub fn spherical(p: Point) -> PointExpand description
Spherical inversion transformation.
This transformation scales the point by its magnitude, creating a radial distortion effect that resembles looking at the plane through a spherical lens.
ยงExample
use wassily_algorithms::spherical;
use wassily_core::pt;
let input = pt(0.5, 0.3);
let result = spherical(input);