示例#1
0
 public BoundingBox(float minx, float miny, float minz,
                    float maxx, float maxy, float maxz)
 {
     _min = new Point3f(minx, miny, minz);
     _max = new Point3f(maxx, maxy, maxz);
     Debug.Assert(Invariant());
 }
示例#2
0
文件: BoundingBox.cs 项目: Kri-Ol/RBF
 public BoundingBox(float minx, float miny, float minz,
                    float maxx, float maxy, float maxz)
 {
     _min = new Point3f(minx, miny, minz);
     _max = new Point3f(maxx, maxy, maxz);
     Debug.Assert(Invariant());
 }
示例#3
0
        public override bool Equals(object o)
        {
            if ((null == o) || !(o is Point3f))
            {
                return(false);
            }

            return(Point3f.Equals(this, (Point3f)o));
        }
示例#4
0
文件: Evaluator.cs 项目: Kri-Ol/RBF
        public Evaluator(Point3f[] points, InOut[] inout)
        {
            _points = points;
            _len    = _points.Length;
            Debug.Assert(_len > 3); // should also check for non-coplanarity

            _inout = inout;
            Debug.Assert(_len <= _inout.Length);

            _bbox = ComputeBBox();
        }
示例#5
0
文件: Point3f.cs 项目: Kri-Ol/RBF
 public bool Equals(Point3f value)
 {
     return Point3f.Equals(this, value);
 }
示例#6
0
文件: Point3f.cs 项目: Kri-Ol/RBF
 public Point3f(Point3f other)
 {
     _x = other._x;
     _y = other._y;
     _z = other._z;
 }
示例#7
0
文件: Point3f.cs 项目: Kri-Ol/RBF
 public static float Norm(Point3f a)
 {
     return (float)Math.Sqrt(Norm2(a));
 }
示例#8
0
文件: Point3f.cs 项目: Kri-Ol/RBF
 public static float Norm2(Point3f a)
 {
     return (Utils.squared(a._x) + Utils.squared(a._y) + Utils.squared(a._z));
 }
示例#9
0
文件: BoundingBox.cs 项目: Kri-Ol/RBF
 public void Clear()
 {
     _min = new Point3f(Single.MaxValue, Single.MaxValue, Single.MaxValue);
     _max = new Point3f(Single.MinValue, Single.MinValue, Single.MinValue);
 }
示例#10
0
文件: Point3f.cs 项目: Kri-Ol/RBF
 public static bool Equals(Point3f a, Point3f b)
 {
     return a.X.Equals(b.X) &&
            a.Y.Equals(b.Y) &&
            a.Z.Equals(b.Z);
 }
示例#11
0
 public static float Norm2(Point3f a)
 {
     return(Utils.squared(a._x) + Utils.squared(a._y) + Utils.squared(a._z));
 }
示例#12
0
 public static float Distance(Point3f a, Point3f b)
 {
     return((float)Math.Sqrt(Distance2(a, b)));
 }
示例#13
0
文件: Point3f.cs 项目: Kri-Ol/RBF
 public static bool AlmostEqual(Point3f a, Point3f b)
 {
     return Math.Abs(a._x - b._x) < eps && Math.Abs(a._y - b._y) < eps && Math.Abs(a._z - b._z) < eps;
 }
示例#14
0
文件: Point3f.cs 项目: Kri-Ol/RBF
 public static float Distance2(Point3f a, Point3f b)
 {
     return (Utils.squared(a._x - b._x) + Utils.squared(a._y - b._y) + Utils.squared(a._z - b._z));
 }
示例#15
0
 public bool Equals(Point3f value)
 {
     return(Point3f.Equals(this, value));
 }
示例#16
0
 public static float Norm(Point3f a)
 {
     return((float)Math.Sqrt(Norm2(a)));
 }
示例#17
0
 public static bool Equals(Point3f a, Point3f b)
 {
     return(a.X.Equals(b.X) &&
            a.Y.Equals(b.Y) &&
            a.Z.Equals(b.Z));
 }
示例#18
0
 public Point3f(Point3f other)
 {
     _x = other._x;
     _y = other._y;
     _z = other._z;
 }
示例#19
0
 public static bool AlmostEqual(Point3f a, Point3f b)
 {
     return(Math.Abs(a._x - b._x) < eps && Math.Abs(a._y - b._y) < eps && Math.Abs(a._z - b._z) < eps);
 }
示例#20
0
文件: Point3f.cs 项目: Kri-Ol/RBF
 public static float Distance(Point3f a, Point3f b)
 {
     return (float)Math.Sqrt(Distance2(a, b));
 }
示例#21
0
文件: Evaluator.cs 项目: Kri-Ol/RBF
 public abstract float Evaluate(Point3f pt);
示例#22
0
 public BoundingBox(Point3f min, Point3f max)
 {
     _min = min;
     _max = max;
     Debug.Assert(Invariant());
 }
示例#23
0
文件: BoundingBox.cs 项目: Kri-Ol/RBF
 public BoundingBox(Point3f min, Point3f max)
 {
     _min = min;
     _max = max;
     Debug.Assert(Invariant());
 }
示例#24
0
 public void Clear()
 {
     _min = new Point3f(Single.MaxValue, Single.MaxValue, Single.MaxValue);
     _max = new Point3f(Single.MinValue, Single.MinValue, Single.MinValue);
 }
示例#25
0
 public static float Distance2(Point3f a, Point3f b)
 {
     return(Utils.squared(a._x - b._x) + Utils.squared(a._y - b._y) + Utils.squared(a._z - b._z));
 }