Skip to content

Commit b0cc90a

Browse files
committed
typos
1 parent 8e5720f commit b0cc90a

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

docs/homog2d_algorithms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Here, their sum is obviously higher than the segment length, thus there is no in
2626

2727
For Segment/Segment, the checking is done twice, once for each segment.
2828

29-
A threshold is used to compare theses distances, the computation is actually (pseudocode):
29+
A threshold is used to compare these distances, the computation is actually (pseudocode):
3030
```
3131
if( | d(ac) + d(bc) - segment_length | < thr::nullDistance() )
3232
... then intersection point

docs/homog2d_devinfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Two Yaml workflow files are present.
219219
- one [msvc.yml](.github/workflows/msvc.yml) is only dedicated to checking that the Microsoft C++ compiler is able to build the software.
220220
- the [other (c-cpp.yml)](.github/workflows/c-cpp.yml) runs the unit test file using both GCC and Clang, on two different platforms (Ubuntu 22 and Ubuntu 24).
221221

222-
If both of theses workflows succeed, it will generate the badge on front page.
222+
If both of these workflows succeed, it will generate the badge on front page.
223223

224224
Once the test app has been build (with `$ make test`), you can run a single test with:
225225
```

docs/homog2d_manual.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,6 @@ The only constraint is that no coordinate can be equal.
586586
The function will throw if it is not enforced.
587587
588588
You can also build the rectangle by giving the 4 coordinates x1,y1 and x2,y2.
589-
The only constraint is that they must be all of the same type (no int/float/double mix).
590589
```C++
591590
FRect r1( x1, y1, x2, y2 );
592591
```

homog2d.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2676,9 +2676,9 @@ class FRect_: public detail::Common<FPT>
26762676
);
26772677
}
26782678

2679-
/// Constructor from x1, y1, x2, y2 (need to be all the same type)
2680-
template<typename T>
2681-
FRect_( T x1, T y1, T x2, T y2 )
2679+
/// Constructor from x1, y1, x2, y2
2680+
template<typename T1,typename T2,typename T3,typename T4>
2681+
FRect_( T1 x1, T2 y1, T3 x2, T4 y2 )
26822682
{
26832683
HOMOG2D_CHECK_IS_NUMBER(T);
26842684
set( Point2d_<FPT>(x1,y1), Point2d_<FPT>(x2,y2) );

misc/homog2d_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ TEST_CASE( "types testing 3", "[test-types-3]" )
540540
EllipseD elld4 = elll;
541541

542542
/**
543-
The goal of theses is to make sure that the conversion (float to double, ...)
543+
The goal of these is to make sure that the conversion (float to double, ...)
544544
does not trigger a build failure.
545545
The checking is only there to avoid a warning about "unused variable".
546546
\todo Once we switch to C++17, we can remove the checking and use:
@@ -1240,7 +1240,7 @@ TEST_CASE( "getCorrectPoints", "[gcpts]" )
12401240
///// ISINSIDE TESTS /////
12411241
//////////////////////////////////////////////////////////////
12421242

1243-
// this test only makes sure that all theses situations compile
1243+
// this test only makes sure that all these situations compile
12441244
TEST_CASE( "IsInside - manual", "[IsInside_man]" )
12451245
{
12461246
Point2d pt1(10,10),pt2(10,10);

0 commit comments

Comments
 (0)