X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrackpart.cpp;h=f677c703ee5a7e89f7ffa9d241fbaa69754f433c;hb=f8a7788cee0261babfc4c804a58515aad6dfbc3d;hp=af2cf37999f23dd376ae5cb134149a90c18d4b22;hpb=460c64181aca1a134d74cb15ea4ad3bb4f275b60;p=r2c2.git diff --git a/source/libr2c2/trackpart.cpp b/source/libr2c2/trackpart.cpp index af2cf37..f677c70 100644 --- a/source/libr2c2/trackpart.cpp +++ b/source/libr2c2/trackpart.cpp @@ -43,12 +43,12 @@ TrackPoint TrackPart::get_point(float d) const 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; } @@ -120,7 +120,7 @@ void TrackPart::Loader::finish() void TrackPart::Loader::start(float x, float y, float d) { - obj.pos = Point(x, y); + obj.pos = Vector(x, y); obj.dir = d; }