Exemplo n.º 1
0
 public Point(Region parent_, float x_, float y_, float z_)
     : base(parent_)
 {
     this.m_p = new Region.Point3f(x_, y_, z_);
 }
Exemplo n.º 2
0
 public float Distance(Region.Point3f other_)
 {
     return((float)Math.Sqrt(Math.Pow((double)other_.X - (double)this.X, 2.0) + Math.Pow((double)other_.Y - (double)this.Y, 2.0) + Math.Pow((double)other_.Z - (double)this.Z, 2.0)));
 }
Exemplo n.º 3
0
 public ReadOnlyCollection <Region> ChildrenWithin(Region.Point3f point_, float maxDist_)
 {
     return(this.ChildrenWithin(point_.X, point_.Y, point_.Z, maxDist_));
 }
Exemplo n.º 4
0
 public override string ToString()
 {
     Region.Point3f point3f = this.CenterPoint();
     return(string.Format("{0:0.0}, {1:0.0}, {2:0.0}", (object)point3f.X, (object)point3f.Y, (object)point3f.Z));
 }
Exemplo n.º 5
0
 public virtual bool Contains(Region region_)
 {
     Region.Point3f point3f = this.CenterPoint();
     return(this.Contains(point3f.X, point3f.Y, point3f.Z));
 }