예제 #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));
 }