mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
geometry(2): fix little typo
This commit is contained in:
parent
65ea63e521
commit
b6b5e569e9
1 changed files with 4 additions and 3 deletions
|
@ -795,21 +795,22 @@ RFrame worldrf;
|
|||
Point2
|
||||
toworld(Point p)
|
||||
{
|
||||
return rframexform(p, worldrf);
|
||||
return rframexform(Pt2(p.x,p.y,1), worldrf);
|
||||
}
|
||||
|
||||
/* ...to screen */
|
||||
Point
|
||||
fromworld(Point2 p)
|
||||
{
|
||||
p = invrframexform(Pt2(p.x,p.y,1), worldrf);
|
||||
p = invrframexform(p, worldrf);
|
||||
return Pt(p.x,p.y);
|
||||
}
|
||||
|
||||
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);
|
||||
⋯
|
||||
|
|
Loading…
Reference in a new issue