bookshelf/common/Common/Data/Real/Geometry/Rectangle.lean

39 lines
848 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import Common.Data.Real.Geometry.Basic
namespace Real
/--
A `Rectangle` is characterized by two points defining opposite corners. We
arbitrarily choose the bottom left and top right points to perform this
characterization.
-/
structure Rectangle (bottom_left : ℝ²) (top_right : ℝ²)
namespace Rectangle
/--
A `Rectangle` is the locus of points making up its edges.
-/
def set_eq (r : Rectangle x y) : Set ℝ² := sorry
/--
Computes the bottom right corner of a `Rectangle`.
-/
def bottom_right (r : Rectangle x y) : ℝ² := sorry
/--
Computes the top left corner of a `Rectangle`.
-/
def top_left (r : Rectangle x y) : ℝ² := sorry
/--
Computes the width of a `Rectangle`.
-/
def width (r : Rectangle x y) : := sorry
/--
Computes the height of a `Rectangle`.
-/
def height (r : Rectangle x y) : := sorry
end Real.Rectangle