From 160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 11 Feb 2020 11:29:07 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=20tab=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/math/ranged_value.h | 68 +++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'src/libjin/math/ranged_value.h') diff --git a/src/libjin/math/ranged_value.h b/src/libjin/math/ranged_value.h index 5a4c35d..abcca29 100644 --- a/src/libjin/math/ranged_value.h +++ b/src/libjin/math/ranged_value.h @@ -7,51 +7,51 @@ namespace JinEngine { - namespace Math - { - /* - * y ^ - * |-------- _ - * | \ / \ - * | --- \ - * | \ - * | \ - * +----------------------> x - */ - class RangedValue - { - public: - RangedValue(); + namespace Math + { + /* + * y ^ + * |-------- _ + * | \ / \ + * | --- \ + * | \ + * | \ + * +----------------------> x + */ + class RangedValue + { + public: + RangedValue(); - /// - /// Points of ranged value. - /// - /// @param points Points. - /// @param n Number of points. - /// - RangedValue(float* points, uint n); + /// + /// Points of ranged value. + /// + /// @param points Points. + /// @param n Number of points. + /// + RangedValue(float* points, uint n); - virtual ~RangedValue() {} + virtual ~RangedValue() {} - virtual void addPoint(float x, float y); + virtual void addPoint(float x, float y); - virtual void removePoint(uint i); + virtual void removePoint(uint i); - virtual void insertPoint(uint i, float x, float y); + virtual void insertPoint(uint i, float x, float y); - virtual float getValue(float x); + virtual float getValue(float x); - virtual void clear(); + virtual void clear(); - private: - std::vector mXAxis; - std::vector mYAxis; + private: + std::vector mXAxis; + std::vector mYAxis; - uint mCount; + uint mCount; - }; + }; - } + } } #endif \ No newline at end of file -- cgit v1.1-26-g67d0