ref: b6b5e569e983e17c65222d9ce09351daf5541be0
parent: 65ea63e52174e262884b751b4d9a86b54092e559
author: rodri <rgl@antares-labs.eu>
date: Mon Oct 14 07:22:53 EDT 2024
geometry(2): fix little typo
--- a/sys/man/2/geometry
+++ b/sys/man/2/geometry
@@ -795,7 +795,7 @@
Point2
toworld(Point p)
{
- return rframexform(p, worldrf);
+ return rframexform(Pt2(p.x,p.y,1), worldrf);
}
/* ...to screen */
@@ -802,7 +802,7 @@
Point
fromworld(Point2 p)
{
- p = invrframexform(Pt2(p.x,p.y,1), worldrf);
+ p = invrframexform(p, worldrf);
return Pt(p.x,p.y);
}
@@ -809,7 +809,8 @@
void
main(void)
⋯
- worldrf.p = Pt2(screen->r.min.x+Dx(screen->r)/2,screen->r.max.y-Dy(screen->r)/2,1);
+ worldrf.p = Pt2(screen->r.min.x+Dx(screen->r)/2,
+ screen->r.min.y+Dy(screen->r)/2, 1);
worldrf.bx = Vec2(1, 0);
worldrf.by = Vec2(0,-1);
⋯
--
⑨