Skip to content

Commit

Permalink
Merge pull request #6 from bsubercaseaux/orientation-comment
Browse files Browse the repository at this point in the history
remove comments on orientation def
  • Loading branch information
JamesGallicchio authored Jun 10, 2024
2 parents 5218720 + 843b44e commit 4983f58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ITP/triple-orientations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
% @[pp_dot] abbrev y (p : Point) : ℝ := p 1
\begin{lstlisting}
inductive Orientation : Type where
| cw -- clockwise := -
| ccw -- counter clockwise := +
| collinear -- := 0
| cw -- Clockwise turn
| ccw -- Counter-clockwise turn
| collinear -- Collinear

noncomputable def σ (p q r : Point) : Orientation :=
let det := Matrix.det !![p.x, q.x, r.x ; p.y, q.y, r.y ; 1, 1, 1]
Expand Down
9 changes: 6 additions & 3 deletions Lean/Geo/Definitions/Orientations.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ noncomputable section
open Classical

inductive Orientation : Type where
| cw -- clockwise := -
| ccw -- counter clockwise := +
| collinear -- := 0
/-- Clockwise turn; `det x y z < 0` -/
| cw
/-- Counter-clockwise turn; `det x y z > 0` -/
| ccw
/-- Collinear; `det x y z = 0` -/
| collinear
deriving DecidableEq, Repr

def Orientation.neg : Orientation → Orientation
Expand Down

0 comments on commit 4983f58

Please sign in to comment.