Centroid of a simplex in affine space #
This file proves some basic properties of the centroid of a simplex in affine space.
The definition of the centroid is based on Finset.univ.centroid applied to the set of vertices.
For convenience, we use Simplex.centroid as an abbreviation.
This file also defines faceOppositeCentroid, which is the centroid of the facet of the simplex
obtained by removing one vertex.
We prove several relations among the centroid, the faceOppositeCentroid, and the vertices of
the simplex. In particular, we prove a version of Commandino's theorem in arbitrary dimensions:
the centroid lies on each median, dividing it in a ratio of n : 1, where n is the dimension
of the simplex.
Main definitions #
centroidis the centroid of a simplex, defined viaFinset.univ.centroidon its vertices.faceOppositeCentroidis the centroid of the facet obtained by removing one vertex from the simplex.medianis the line connecting a vertex to the corresponding faceOppositeCentroid.
References #
- https://en.wikipedia.org/wiki/Median_(geometry)
- https://en.wikipedia.org/wiki/Commandino%27s_theorem
The centroid of a simplex is the Finset.centroid of the set of all its vertices.
Equations
Instances For
The centroid lines in the affine span of the simplex's vertices.
The centroid is equal to the affine combination of the points with centroidWeights.
The centroid of a simplex does not lie in the affine span of any proper subset of its vertices.
The vector from any point to the centroid is the average of vectors to the simplex vertices.
The sum of vectors from the centroid to each vertex is zero.
A point is centroid if and only if the sum of vectors from the point to all vertices is zero.
The centroid of a face of a simplex as the centroid of a subset of the points.
Over a characteristic-zero division ring, the centroids given by two subsets of the points of a simplex are equal if and only if those faces are given by the same subset of points.
Over a characteristic-zero division ring, the centroids of two faces of a simplex are equal if and only if those faces are given by the same subset of points.
Two simplices with the same points have the same centroid.
Replacing a vertex of a simplex by its centroid preserves affine independence.
The faceOppositeCentroid is the centroid of the face opposite to the vertex indexed by i.
Equations
- s.faceOppositeCentroid i = (s.faceOpposite i).centroid
Instances For
The centroid of the face opposite a vertex lies in the affine span of that face.
The faceOppositeCentroid is the affine combination of the complement vertices with equal
weights 1/n.
The vector from a vertex to the corresponding faceOppositeCentroid equals the average of the
displacements to the other vertices.
The faceOppositeCentroid equals the average displacement from a vertex plus that vertex.
The vector from a vertex to its faceOppositeCentroid equals the average of reversed
displacements.
The vector between two faceOppositeCentroid equals n⁻¹ times the vector between the
corresponding vertices.
The vector from a vertex to its faceOppositeCentroid is (n+1) times the vector from the
centroid to that faceOppositeCentroid.
Commandino's theorem : For n-simplex, the vector from a vertex to the centroid
equals n times the vector from the centroid to the corresponding faceOppositeCentroid.
Reverse version of point_vsub_centroid_eq_smul_vsub.
The vector from centroid to a vertex corresponding faceOppositeCentroid is n⁻¹ of the
vector from the vertex to the centroid.
Reverse version of faceOppositeCentroid_vsub_centroid_eq_smul_vsub
The centroid of an n-simplex can be obtained from a vertex by adding
n times the vector from the centroid to the faceOppositeCentroid.
The point faceOppositeCentroid of an n-simplex can be obtained from
the centroid by adding n⁻¹ times the vector from the vertex to the centroid.
The median of a simplex is the line through a vertex and its corresponding
faceOppositeCentroid.
Equations
- s.median i = affineSpan k {s.points i, s.faceOppositeCentroid i}
Instances For
The faceOppositeCentroid lines on the median through the corresponding vertex.
The median of a simplex is the line through the vertex and the centroid.
The medians of a simplex are concurrent at its centroid.