Skip to content

Commit c4f36b4

Browse files
authored
Merge pull request #9 from Zardshard/inline
Fix multiple definitions linker error
2 parents e7db22b + b289c3c commit c4f36b4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

agg-src/include/agg_trans_perspective.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ namespace agg
502502
}
503503

504504
//------------------------------------------------------------------------
505-
const trans_perspective&
505+
inline const trans_perspective&
506506
trans_perspective::multiply_inv(const trans_perspective& m)
507507
{
508508
trans_perspective t = m;
@@ -511,7 +511,7 @@ namespace agg
511511
}
512512

513513
//------------------------------------------------------------------------
514-
const trans_perspective&
514+
inline const trans_perspective&
515515
trans_perspective::multiply_inv(const trans_affine& m)
516516
{
517517
trans_affine t = m;
@@ -520,7 +520,7 @@ namespace agg
520520
}
521521

522522
//------------------------------------------------------------------------
523-
const trans_perspective&
523+
inline const trans_perspective&
524524
trans_perspective::premultiply_inv(const trans_perspective& m)
525525
{
526526
trans_perspective t = m;
@@ -529,7 +529,7 @@ namespace agg
529529
}
530530

531531
//------------------------------------------------------------------------
532-
const trans_perspective&
532+
inline const trans_perspective&
533533
trans_perspective::premultiply_inv(const trans_affine& m)
534534
{
535535
trans_perspective t(m);
@@ -697,14 +697,14 @@ namespace agg
697697
}
698698

699699
//------------------------------------------------------------------------
700-
void trans_perspective::translation(double* dx, double* dy) const
700+
inline void trans_perspective::translation(double* dx, double* dy) const
701701
{
702702
*dx = tx;
703703
*dy = ty;
704704
}
705705

706706
//------------------------------------------------------------------------
707-
void trans_perspective::scaling(double* x, double* y) const
707+
inline void trans_perspective::scaling(double* x, double* y) const
708708
{
709709
double x1 = 0.0;
710710
double y1 = 0.0;
@@ -719,7 +719,7 @@ namespace agg
719719
}
720720

721721
//------------------------------------------------------------------------
722-
void trans_perspective::scaling_abs(double* x, double* y) const
722+
inline void trans_perspective::scaling_abs(double* x, double* y) const
723723
{
724724
*x = std::sqrt(sx * sx + shx * shx);
725725
*y = std::sqrt(shy * shy + sy * sy);

0 commit comments

Comments
 (0)