double t = Vector::Parameter(position, endpoint, endpoint - (unit * 9.0 * size));
//printf("Dimension::Draw(): t = %lf\n", t);
double t = Vector::Parameter(position, endpoint, endpoint - (unit * 9.0 * size));
//printf("Dimension::Draw(): t = %lf\n", t);
{
// Draw main dimension line + arrowheads
painter->DrawLine(p1, p2);
{
// Draw main dimension line + arrowheads
painter->DrawLine(p1, p2);
Vector v1((p1.x - p2.x) / 2.0, (p1.y - p2.y) / 2.0);
Point ctr = p2 + v1;
QString dimText = QString("%1\"").arg(Vector(endpoint - position).Magnitude());
Vector v1((p1.x - p2.x) / 2.0, (p1.y - p2.y) / 2.0);
Point ctr = p2 + v1;
QString dimText = QString("%1\"").arg(Vector(endpoint - position).Magnitude());