| Copyright | (C) Frank Staals |
|---|---|
| License | see the LICENSE file |
| Maintainer | Frank Staals |
| Safe Haskell | None |
| Language | GHC2024 |
HGeometry.Ball.BoundaryPoints
Description
A ball in \(d\) dimensional space represented by \(d+1\) points on the boundary.
Synopsis
- type BallByPoints point = BallByPoints' (1 + Dimension point) point
- newtype BallByPoints' (k :: Nat) point = BoundaryPoints (Vector k point)
- diskFromPoints :: (Point_ point 2 r, Ord r, Num r) => point -> point -> point -> Maybe (BallByPoints point)
Documentation
type BallByPoints point = BallByPoints' (1 + Dimension point) point Source #
A ball specified by d+1 points which form a CCW simplex.
newtype BallByPoints' (k :: Nat) point Source #
A ball specified by k points which form a CCW simplex.
This is just a helper type to implement the BallByPoints type.
Constructors
| BoundaryPoints (Vector k point) |
Instances
diskFromPoints :: (Point_ point 2 r, Ord r, Num r) => point -> point -> point -> Maybe (BallByPoints point) Source #
smart constructor that makes sure the points are given in the right orientation may fail if the points are colinear