X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvector.h;h=6a1409e74ab1bda7d4bcaf49246902c2d093fd83;hb=28f28705612902c15cd0702cc891fba35bf2d2df;hp=a279db832d61408b199d3ec1db16f09757add767;hpb=2c43cbfff01496919316f600ee76112be551392d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/vector.h b/synfig-core/trunk/src/synfig/vector.h index a279db8..6a1409e 100644 --- a/synfig-core/trunk/src/synfig/vector.h +++ b/synfig-core/trunk/src/synfig/vector.h @@ -1,4 +1,4 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file vector.h ** \brief Various discreet type definitions ** @@ -21,8 +21,8 @@ /* === S T A R T =========================================================== */ -#ifndef __SINFG_VECTOR_H -#define __SINFG_VECTOR_H +#ifndef __SYNFIG_VECTOR_H +#define __SYNFIG_VECTOR_H /* === H E A D E R S ======================================================= */ @@ -51,7 +51,7 @@ extern "C" { int _isnan(double x); } /* === C L A S S E S & S T R U C T S ======================================= */ -namespace sinfg { +namespace synfig { /*! \class Vector ** \todo writeme @@ -180,12 +180,12 @@ typedef Vector Point; -}; // END of namespace sinfg +}; // END of namespace synfig namespace std { -inline sinfg::Vector::value_type -abs(const sinfg::Vector &rhs) +inline synfig::Vector::value_type +abs(const synfig::Vector &rhs) { return rhs.mag(); } }; // END of namespace std @@ -195,14 +195,14 @@ abs(const sinfg::Vector &rhs) _ETL_BEGIN_NAMESPACE template <> -class bezier_base : public std::unary_function +class bezier_base : public std::unary_function { public: - typedef sinfg::Vector value_type; + typedef synfig::Vector value_type; typedef float time_type; private: - bezier_base bezier_x,bezier_y; + bezier_base bezier_x,bezier_y; value_type a,b,c,d; @@ -229,7 +229,7 @@ public: value_type operator()(time_type t)const { - return sinfg::Vector(bezier_x(t),bezier_y(t)); + return synfig::Vector(bezier_x(t),bezier_y(t)); } void evaluate(time_type t, value_type &f, value_type &df) const