-void Track3D::get_bounds(float angle, Point &minp, Point &maxp) const
-{
- type.get_bounds(angle-track.get_rotation(), minp, maxp);
-
- float c = cos(-angle);
- float s = sin(-angle);
-
- const Point &pos = track.get_position();
- minp.x += c*pos.x-s*pos.y;
- maxp.x += c*pos.x-s*pos.y;
- minp.y += s*pos.x+c*pos.y;
- maxp.y += s*pos.x+c*pos.y;
- minp.z += pos.z;
- maxp.z += pos.z;
-
- float slope = track.get_slope();
- if(slope>0)
- maxp.z += slope;
- else
- minp.z += slope;
-}
-
-Point Track3D::get_node() const