Perpendicular bisector of a segment #
We define AffineSubspace.perpBisector p₁ p₂ to be the perpendicular bisector of the segment
[p₁, p₂], as a bundled affine subspace. We also prove that a point belongs to the perpendicular
bisector if and only if it is equidistant from p₁ and p₂, as well as a few linear equations that
define this subspace.
Keywords #
euclidean geometry, perpendicular, perpendicular bisector, line segment bisector, equidistant
Perpendicular bisector of a segment in a Euclidean affine space.
Equations
- AffineSubspace.perpBisector p₁ p₂ = AffineSubspace.mk' (midpoint ℝ p₁ p₂) (LinearMap.ker ((innerₛₗ ℝ) (p₂ -ᵥ p₁)))
Instances For
A point c belongs the perpendicular bisector of [p₁, p₂] iff p₂ -ᵥ p₁is orthogonal to
`c -ᵥ midpoint ℝ p₁ p₂`.
A point c belongs the perpendicular bisector of [p₁, p₂] iff c -ᵥ midpoint ℝ p₁ p₂is orthogonal top₂ -ᵥ p₁`.
Suppose that c₁ is equidistant from p₁ and p₂, and the same applies to c₂. Then the
vector between c₁ and c₂ is orthogonal to that between p₁ and p₂. (In two dimensions, this
says that the diagonals of a kite are orthogonal.)