Simplex in affine space #
This file defines n-dimensional simplices in affine space.
Main definitions #
Simplexis a bundled type with collection ofn + 1points in affine space that are affinely independent, wherenis the dimension of the simplex.Triangleis a simplex with three points, defined as an abbreviation for simplex withn = 2.faceis a simplex with a subset of the points of the original simplex.
References #
A Simplex k P n is a collection of n + 1 affinely
independent points.
- independent : AffineIndependent k self.points
Instances For
A Triangle k P is a collection of three affinely independent points.
Equations
Instances For
Construct a 0-simplex from a point.
Equations
Instances For
The point in a simplex constructed with mkOfPoint.
Equations
Two simplices are equal if and only if they have the same points.
A face of a simplex is a simplex with the given subset of points.
Equations
Instances For
The points of a face of a simplex are given by mono_of_fin.
Needed to make affineSpan (s.points '' {i}แถ) nonempty.
Push forward an affine simplex under an injective affine map.
Equations
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.
Equations
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 in a set I.
Equations
Instances For
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.