aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/math/ranged_value.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-02-11 11:29:07 +0800
committerchai <chaifix@163.com>2020-02-11 11:29:07 +0800
commit160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 (patch)
treeabe5ae5242d9cc6caf6edf103e662c44e978fca0 /src/libjin/math/ranged_value.h
parente095043485d1d298571af6d9eca7f0db9009ea7a (diff)
*修改 tab大小HEADmaster
Diffstat (limited to 'src/libjin/math/ranged_value.h')
-rw-r--r--src/libjin/math/ranged_value.h68
1 files changed, 34 insertions, 34 deletions
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<float> mXAxis;
- std::vector<float> mYAxis;
+ private:
+ std::vector<float> mXAxis;
+ std::vector<float> mYAxis;
- uint mCount;
+ uint mCount;
- };
+ };
- }
+ }
}
#endif \ No newline at end of file