#include <GccEnt_BadQualifier.hxx>
#include <Precision.hxx>
//=========================================================================
-// Creation d un cercle Tangent a : 1 droite L1. +
-// Passant par : 1 point Point2. +
-// Centre sur : 1 droite OnLine. +
-// avec une Tolerance de precision : Tolerance. +
+// Creation of a circle Tangent to : 1 straight line L1. +
+// Passing by : 1 point Point2. +
+// Centered on : 1 straight line OnLine. +
+// with a Tolerance of precision : Tolerance. +
// +
-// Nous commencons par distinguer les differents cas limites que nous +
-// allons traiter separement. +
-// Pour le cas general: +
+// We start by making difference with various boundary cases that will be +
+// processed separately. +
+// For the general case: +
// ==================== +
-// Nous calculons les bissectrices a L1 et Point2 qui nous donnent +
-// l ensemble des lieux possibles des centres de tous les cercles +
-// tangents a L1 et passant par Point2. +
-// Nous intersectons ces bissectrices avec la droite OnLine ce qui nous +
-// donne les points parmis lesquels nous allons choisir les solutions. +
-// Les choix s effectuent a partir des Qualifieurs qualifiant L1. +
+// We calculate bissectrices to L1 and Point2 that give us +
+// all possible locations of centers of all circles +
+// tangent to L1 and passing through Point2. +
+// We intersect these bissectrices with straight line OnLine which gives us +
+// the points among which we'll choose the solutions. +
+// The choices are made basing on Qualifieurs of L1. +
//=========================================================================
GccAna_Circ2d2TanOn::
gp_Dir2d normal(-dirL1.Y(),dirL1.X());
//=========================================================================
-// Traitement des cas limites. +
+// Processing of boundary cases. +
//=========================================================================
if (dirL1.IsEqual(OnLine.Direction(),Precision::Confusion()) &&
OnLine.Distance(originL1)<Precision::Confusion()) {
- // POP : l2s 2 droites sont identiques : pas de Sol
+ // POP : l2s 2 straight line are identic : no Sol
NbrSol = 0;
return ;
}
}
//=========================================================================
-// cas general. +
+// General case. +
//=========================================================================
GccAna_LinPnt2dBisec Bis(L1,Point2);