Simplex in affine space #
This file defines n-dimensional simplices in affine space.
Main definitions #
Simplex
is a bundled type with collection ofn + 1
points in affine space that are affinely independent, wheren
is the dimension of the simplex.Triangle
is a simplex with three points, defined as an abbreviation for simplex withn = 2
.face
is a simplex with a subset of the points of the original simplex.
References #
A Triangle k P
is a collection of three affinely independent points.
Equations
- Affine.Triangle k P = Affine.Simplex k P 2
Instances For
Construct a 0-simplex from a point.
Instances For
Equations
- Affine.Simplex.instInhabitedOfNatNat k = { default := Affine.Simplex.mkOfPoint k default }
A face of a simplex is a simplex with the given subset of points.
Instances For
Needed to make affineSpan (s.points '' {i}ᶜ)
nonempty.
Push forward an affine simplex under an injective affine map.
Instances For
Reindexing by Equiv.refl
yields the original simplex.
Reindexing by the composition of two equivalences is the same as reindexing twice.
Reindexing by the inverse of an equivalence and that equivalence yields the original simplex.
Restrict an affine simplex to an affine subspace that contains it.
Instances For
Restricting to S₁
then mapping to a larger S₂
is the same as restricting to S₂
.
Restricting to S₁
then mapping through the restriction of f
to S₁ →ᵃ[k] S₂
is the same
as mapping through unrestricted f
, then restricting to S₂
.
Restricting to affineSpan k (Set.range s.points)
can be reversed by mapping through
AffineSubspace.subtype
.
The interior of a simplex is the set of points that can be expressed as an affine combination of the vertices with weights strictly between 0 and 1. This is equivalent to the intrinsic interior of the convex hull of the vertices.
Equations
Instances For
s.closedInterior
is the set of points that can be expressed as an affine combination
of the vertices with weights between 0 and 1 inclusive. This is equivalent to the convex hull of
the vertices or the closure of the interior.
Equations
- One or more equations did not get rendered due to their size.