Skip to content

Commit

Permalink
Merge pull request #9 from Zardshard/inline
Browse files Browse the repository at this point in the history
Fix multiple definitions linker error
  • Loading branch information
ghaerr authored Aug 21, 2023
2 parents e7db22b + b289c3c commit c4f36b4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions agg-src/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 c4f36b4

Please sign in to comment.