if(radius)
{
Angle a = Angle::from_radians(d/radius);
- result.position = transform.transform(Vector(sin(a)*abs(radius), radius-cos(a)*radius, 0));
+ result.position = transform.transform(Vector(sin(a)*radius, (1-cos(a))*radius, 0));
result.rotation = dir+a;
}
else
a = min(max(a, Angle::zero()), Angle::from_radians(length));
if(radius<0)
a = -a;
- result.position = transform.transform(Vector(sin(a)*abs(radius), radius-cos(a)*radius, 0));
+ result.position = transform.transform(Vector(sin(a)*radius, (1-cos(a))*radius, 0));
result.rotation = dir+a;
}
else