/// <summary> /// Creates an orientated bounding box of size min, max. /// </summary> /// <param name="Min">Minimum x, y, z.</param> /// <param name="Max">Maximum x, y, z.</param> public OrientatedBoundingBox(Vector3 Min, Vector3 Max) { box = new AxisAlignedBoundingBox(Min, Max); modelMatrix = Matrix4.Identity; }
/// <summary> /// Increase the size of the bounding box (if needed) to fit the AxisAlignedBoundingBox. /// </summary> /// <param name="Box">The AxisAlignedBoundingBox to fit into this AxisAlignedBoundingBox.</param> public void AddBoundingBox(AxisAlignedBoundingBox Box) { //min.TakeMin(Box.Min); //max.TakeMax(Box.Max); }