projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new function angle::abs() which returns the absolute (positive) value of an...
[synfig.git]
/
ETL
/
trunk
/
ETL
/
_angle.h
diff --git
a/ETL/trunk/ETL/_angle.h
b/ETL/trunk/ETL/_angle.h
index
1abf930
..
f1a9206
100644
(file)
--- a/
ETL/trunk/ETL/_angle.h
+++ b/
ETL/trunk/ETL/_angle.h
@@
-173,6
+173,17
@@
public:
operator!=(const angle &rhs)const
{ return std::abs(dist(rhs).v)>epsilon; }
operator!=(const angle &rhs)const
{ return std::abs(dist(rhs).v)>epsilon; }
+ //! Absolute Angle Function
+ /*! This function will return the
+ absolute value of the angle. */
+ angle
+ abs()const
+ {
+ angle ret;
+ ret.v=std::abs(v);
+ return ret;
+ }
+
//! Angle Difference Function
/*! This function will return the
shortest physical distance between
//! Angle Difference Function
/*! This function will return the
shortest physical distance between