Skip to content

Commit

Permalink
Fixed multiple-definition linker errors (https://sourceforge.net/p/ag…
Browse files Browse the repository at this point in the history
  • Loading branch information
jim_barry authored and xakod committed Aug 29, 2023
1 parent fc45e5e commit 80e4537
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/agg_trans_perspective.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ namespace agg
}

//------------------------------------------------------------------------
const trans_perspective&
inline const trans_perspective&
trans_perspective::multiply_inv(const trans_perspective& m)
{
trans_perspective t = m;
Expand All @@ -511,7 +511,7 @@ namespace agg
}

//------------------------------------------------------------------------
const trans_perspective&
inline const trans_perspective&
trans_perspective::multiply_inv(const trans_affine& m)
{
trans_affine t = m;
Expand All @@ -520,7 +520,7 @@ namespace agg
}

//------------------------------------------------------------------------
const trans_perspective&
inline const trans_perspective&
trans_perspective::premultiply_inv(const trans_perspective& m)
{
trans_perspective t = m;
Expand All @@ -529,7 +529,7 @@ namespace agg
}

//------------------------------------------------------------------------
const trans_perspective&
inline const trans_perspective&
trans_perspective::premultiply_inv(const trans_affine& m)
{
trans_perspective t(m);
Expand Down Expand Up @@ -697,14 +697,14 @@ namespace agg
}

//------------------------------------------------------------------------
void trans_perspective::translation(double* dx, double* dy) const
inline void trans_perspective::translation(double* dx, double* dy) const
{
*dx = tx;
*dy = ty;
}

//------------------------------------------------------------------------
void trans_perspective::scaling(double* x, double* y) const
inline void trans_perspective::scaling(double* x, double* y) const
{
double x1 = 0.0;
double y1 = 0.0;
Expand All @@ -719,7 +719,7 @@ namespace agg
}

//------------------------------------------------------------------------
void trans_perspective::scaling_abs(double* x, double* y) const
inline void trans_perspective::scaling_abs(double* x, double* y) const
{
*x = std::sqrt(sx * sx + shx * shx);
*y = std::sqrt(shy * shy + sy * sy);
Expand Down

0 comments on commit 80e4537

Please sign in to comment.