Circumcenter and circumradius
This file proves some lemmas on points equidistant from a set of points, and defines the circumradius and circumcenter of a simplex. There are also some definitions for use in calculations where it is convenient to work with affine combinations of vertices together with the circumcenter.
Main definitions
circumcenter
andcircumradius
are the circumcenter and circumradius of a simplex.
References
- https://en.wikipedia.org/wiki/Circumscribed_circle
p
is equidistant from two points in s
if and only if its
orthogonal_projection
is.
p
is equidistant from a set of points in s
if and only if its
orthogonal_projection
is.
There exists r
such that p
has distance r
from all the
points of a set of points in s
if and only if there exists (possibly
different) r
such that its orthogonal_projection
has that distance
from all the points in that set.
The induction step for the existence and uniqueness of the
circumcenter. Given a nonempty set of points in a nonempty affine
subspace whose direction is complete, such that there is a unique
(circumcenter, circumradius) pair for those points in that subspace,
and a point p
not in that subspace, there is a unique (circumcenter,
circumradius) pair for the set with p
added, in the span of the
subspace with p
added.
Given a finite nonempty affinely independent family of points, there is a unique (circumcenter, circumradius) pair for those points in the affine subspace they span.
The pair (circumcenter, circumradius) of a simplex.
Equations
The property satisfied by the (circumcenter, circumradius) pair.
The circumcenter of a simplex.
Equations
The circumradius of a simplex.
Equations
The circumcenter lies in the affine span.
All points have distance from the circumcenter equal to the circumradius.
All points have distance to the circumcenter equal to the circumradius.
Given a point in the affine span from which all the points are equidistant, that point is the circumcenter.
Given a point in the affine span from which all the points are equidistant, that distance is the circumradius.
- point_index : Π (n : ℕ), fin (n + 1) → affine.simplex.points_with_circumcenter_index n
- circumcenter_index : Π (n : ℕ), affine.simplex.points_with_circumcenter_index n
An index type for the vertices of a simplex plus its circumcenter. This is for use in calculations where it is convenient to work with affine combinations of vertices together with the circumcenter. (An equivalent form sometimes used in the literature is placing the circumcenter at the origin and working with vectors for the vertices.)
point_index
as an embedding.
Equations
- affine.simplex.point_index_embedding n = {to_fun := λ (i : fin (n + 1)), affine.simplex.points_with_circumcenter_index.point_index i, inj' := _}
The sum of a function over points_with_circumcenter_index
.
The vertices of a simplex plus its circumcenter.
points_with_circumcenter
, applied to a point_index
value,
equals points
applied to that value.
points_with_circumcenter
, applied to circumcenter_index
, equals the
circumcenter.
The weights for a single vertex of a simplex, in terms of
points_with_circumcenter
.
point_weights_with_circumcenter
sums to 1.
A single vertex, in terms of points_with_circumcenter
.
The weights for the centroid of some vertices of a simplex, in
terms of points_with_circumcenter
.
centroid_weights_with_circumcenter
sums to 1, if the finset
is
nonempty.
The centroid of some vertices of a simplex, in terms of
points_with_circumcenter
.
The weights for the circumcenter of a simplex, in terms of
points_with_circumcenter
.
circumcenter_weights_with_circumcenter
sums to 1.
The circumcenter of a simplex, in terms of
points_with_circumcenter
.