float s = sin(a);
float rx = radius*sin(dir);
float ry = -radius*cos(dir);
- result.pos = Point(pos.x+c*rx-s*ry-rx, pos.y+c*ry+s*rx-ry);
+ result.pos = Vector(pos.x+c*rx-s*ry-rx, pos.y+c*ry+s*rx-ry);
result.dir = dir+a;
}
else
{
- result.pos = Point(pos.x+cos(dir)*d, pos.y+sin(dir)*d);
+ result.pos = Vector(pos.x+cos(dir)*d, pos.y+sin(dir)*d);
result.dir = dir;
}
void TrackPart::Loader::start(float x, float y, float d)
{
- obj.pos = Point(x, y);
+ obj.pos = Vector(x, y);
obj.dir = d;
}