improve whitespaces
This commit is contained in:
@@ -4708,20 +4708,20 @@ Restart:
|
||||
p0 = SbVec3f(x,y,0);
|
||||
}
|
||||
}
|
||||
|
||||
range = Constr->getValue(); // WYSIWYG
|
||||
startangle = atan2(dir1.y,dir1.x);
|
||||
|
||||
} else {//angle-via-point
|
||||
|
||||
range = Constr->getValue(); // WYSIWYG
|
||||
startangle = atan2(dir1.y,dir1.x);
|
||||
}
|
||||
else {//angle-via-point
|
||||
Base::Vector3d p = getSketchObject()->getSolvedSketch().getPoint(Constr->Third, Constr->ThirdPos);
|
||||
p0 = SbVec3f(p.x, p.y, 0);
|
||||
dir1 = getSketchObject()->getSolvedSketch().calculateNormalAtPoint(Constr->First, p.x, p.y);
|
||||
dir1.RotateZ(-M_PI/2);//convert to vector of tangency by rotating
|
||||
dir2 = getSketchObject()->getSolvedSketch().calculateNormalAtPoint(Constr->Second, p.x, p.y);
|
||||
dir2.RotateZ(-M_PI/2);
|
||||
|
||||
startangle = atan2(dir1.y,dir1.x);
|
||||
range = atan2(dir1.x*dir2.y-dir1.y*dir2.x,
|
||||
|
||||
startangle = atan2(dir1.y,dir1.x);
|
||||
range = atan2(dir1.x*dir2.y-dir1.y*dir2.x,
|
||||
dir1.x*dir2.x+dir1.y*dir2.y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user