Sketcher: Spelling colinear -> collinear

I have not changed the name of the `areColinear` function.
This commit is contained in:
Roy-043
2024-03-25 09:39:15 +01:00
committed by wwmayer
parent 4596aa1ae6
commit a7251a6c3a
5 changed files with 7 additions and 7 deletions

View File

@@ -6427,8 +6427,8 @@ CmdSketcherConstrainTangent::CmdSketcherConstrainTangent()
{
sAppModule = "Sketcher";
sGroup = "Sketcher";
sMenuText = QT_TR_NOOP("Constrain tangent or colinear");
sToolTipText = QT_TR_NOOP("Create a tangent or colinear constraint between two entities");
sMenuText = QT_TR_NOOP("Constrain tangent or collinear");
sToolTipText = QT_TR_NOOP("Create a tangent or collinear constraint between two entities");
sWhatsThis = "Sketcher_ConstrainTangent";
sStatusTip = sToolTipText;
sPixmap = "Constraint_Tangent";

View File

@@ -147,7 +147,7 @@ private:
}
else {
if (areColinear(firstPoint, secondPoint, onSketchPos)) {
// If points are colinear then we can't calculate the center.
// If points are collinear then we can't calculate the center.
return;
}
centerPoint =

View File

@@ -135,7 +135,7 @@ private:
case SelectMode::SeekThird: {
try {
if (areColinear(firstPoint, secondPoint, onSketchPos)) {
// If points are colinear then we can't calculate the center.
// If points are collinear then we can't calculate the center.
return;
}

View File

@@ -2375,7 +2375,7 @@ void EditModeConstraintCoinManager::drawConstraintIcons(const GeoListFacade& geo
switch (constraint->Type) {
case Tangent: { // second icon is available only for colinear line segments
case Tangent: { // second icon is available only for collinear line segments
const Part::Geometry* geo1 = geolistfacade.getGeometryFromGeoId(constraint->First);
const Part::Geometry* geo2 = geolistfacade.getGeometryFromGeoId(constraint->Second);
if (geo1 && geo1->is<Part::GeomLineSegment>() && geo2

View File

@@ -248,7 +248,7 @@ class TestSketchFillet(unittest.TestCase):
App.Vector(2, 2, 0).distanceToPoint(SketchFeature.getPoint(4, 3)), 1.0
)
# Make sure colinearity doesn't get dropped
# Make sure collinearity doesn't get dropped
def testTangent(self):
SketchFeature = self.Doc.addObject("Sketcher::SketchObject", "Tangent")
@@ -284,7 +284,7 @@ class TestSketchFillet(unittest.TestCase):
)
# We expect the other end of the tangent line to be at 5,5, but I think 3,3 also satisfies
# the colinearity constraint
# the collinearity constraint
try:
self.assertAlmostEqual(
App.Vector(3, 3, 0).distanceToPoint(SketchFeature.getPoint(tangent_line, 2)),