Agent.Bounds.Bounds C# (CSharp) Метод

Bounds() публичный Метод

public Bounds ( Point3d min, Point3d max ) : System
min Point3d
max Point3d
Результат System
    public Bounds(Point3d min, Point3d max)
    {
      Vector3 lb = new Vector3((float)min.X, (float)min.Y, (float)min.Z);
      Vector3 rt = new Vector3((float)max.X, (float)max.Y, (float)max.Z);
      this.center = new Vector3((lb.X + rt.X) / 2, (lb.Y + rt.Y) / 2, (lb.Z + rt.Z) / 2);
      this.r = new Vector3(rt.X - center.X, rt.Y - center.Y, rt.Z - center.Z);
      this.lb = lb;
      this.rt = rt;
    }

Same methods

Bounds::Bounds ( Vector3 center, Vector3 sideLength ) : System