]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/beamgate.cpp
Rename TrackPoint to a more generic OrientedPoint
[r2c2.git] / source / libr2c2 / beamgate.cpp
index 550c97c4ca457ace5deed6f5c9fdec7ae8fe8562..ad559120f491c22a45d4c6337bbdce2aab639912 100644 (file)
@@ -34,11 +34,6 @@ const BeamGateType &BeamGate::get_type() const
        return BeamGateType::instance();
 }
 
-void BeamGate::set_address(unsigned a)
-{
-       address = a;
-}
-
 void BeamGate::set_position(const Vector &p)
 {
        position = p;
@@ -59,9 +54,9 @@ void BeamGate::update_attachment()
 
        if(track)
        {
-               TrackPoint tp = track->get_point(track.entry(), offset);
-               position = tp.pos;
-               rotation = tp.dir;
+               OrientedPoint p = track.point();
+               position = p.position;
+               rotation = p.rotation;
        }
 }