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.comap (↑(AffineEquiv.symm (AffineEquiv.vaddConst ℝ (midpoint ℝ p₁ p₂)))) (Submodule.toAffineSubspace (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 to
p₂ -ᵥ 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.)