idTech4.idBounds.AddPoint C# (CSharp) Method

AddPoint() public method

public AddPoint ( Vector3 point ) : bool
point Vector3
return bool
		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;
		}

Same methods

idBounds::AddPoint ( Vector4 point ) : bool