Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
skramm committed Jan 27, 2025
1 parent 8f7b3f4 commit e683653
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/homog2d_devinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The makefile then compiles it and runs it.
### 4.1 - Partial template implementation trick

To be able to templatize all the code on the root numerical data type (float, double, ...), we implement some trick.
As the `LPBase` class is already templatized on the type (`type::IsPoint` or `type::IsLine`),
As the `LPBase` class is already templatized on the type (`typ::IsPoint` or `typ::IsLine`),
it would require a partial template specialization to define the behavior of each member function (or free function),
depending on the basic type (Line or Point), and still templatize on the numerical type.
C++ does not allow this.
Expand Down
6 changes: 3 additions & 3 deletions homog2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ See https://github.com/skramm/homog2d
#define HOMOG2D_MAXITER_PIP 5
#endif

#define HOMOG2D_VERSION "2.12.0"
#define HOMOG2D_VERSION "2.12.1"

// some MS environments seem to lack Pi definition, even if _USE_MATH_DEFINES is defined
#ifndef M_PI
Expand Down Expand Up @@ -5946,7 +5946,7 @@ this should work !!! (but doesn't...)
if( pt_front == pt_back ) // means it's closed
isClosed = true;

if( isClosed && std::is_same<PLT,type::IsOpen>::value ) // cannot build an open polyline from a closed one
if( isClosed && std::is_same_v<PLT,typ::IsOpen> ) // cannot build an open polyline from a closed one
HOMOG2D_THROW_ERROR_1( "unable to convert a closed boost::polygon into an OPolyline" );

_plinevec.reserve( outer.size() - isClosed );
Expand Down Expand Up @@ -9288,7 +9288,7 @@ product(

/// Implementation of product 3x3 by 3x1
/**
- T1 and T2: type::IsLine or type::IsPoint (same but also different)
- T1 and T2: typ::IsLine or typ::IsPoint (same but also different)
*/
template<typename T1,typename T2,typename FPT1,typename FPT2>
void
Expand Down

0 comments on commit e683653

Please sign in to comment.