public bool AddPoint(Vector3 point)
{
bool expanded = false;
if(point.X < this.Min.X)
{
this.Min.X = point.X;
expanded = true;
}
if(point.X > this.Max.X)
{
this.Max.X = point.X;
expanded = true;
}
if(point.Y < this.Min.Y)
{
this.Min.Y = point.Y;
expanded = true;
}
if(point.Y> this.Max.Y)
{
this.Max.Y = point.Y;
expanded = true;
}
if(point.Z < this.Min.Z)
{
this.Min.Z = point.Z;
expanded = true;
}
if(point.Z > this.Max.Z)
{
this.Max.Z = point.Z;
expanded = true;
}
return expanded;
}