bookshelf/Common/Geometry/Line.lean

24 lines
541 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.Geometry.Point
/-! # Common.Geometry.Line
A representation of a line in the two-dimensional Cartesian plane.
-/
namespace Geometry
/--
A `Line` is represented in vector form (not to be confused with `Vector`).
It is completely characterized by a point `P` on the line in question and a
direction vector `dir` parallel to the line. Such a line is represented by
equation
```
\vec{r} = \vec{OP} + t\vec{d},
```
where `O` denotes the origin and `t ∈ `.
-/
structure Line where
p : Point
dir : ×
end Geometry