Portability | GHC |
---|---|

Stability | highly unstable |

Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |

Vertices generators for elementary objects - triangles.

- type Vertices2 u = (Vec2 u, Vec2 u)
- type Vertices3 u = (Vec2 u, Vec2 u, Vec2 u)
- type Vertices4 u = (Vec2 u, Vec2 u, Vec2 u, Vec2 u)
- runVertices2 :: Num u => Point2 u -> Vertices2 u -> [Point2 u]
- runVertices3 :: Num u => Point2 u -> Vertices3 u -> [Point2 u]
- runVertices4 :: Num u => Point2 u -> Vertices4 u -> [Point2 u]
- rectangleVertices :: Num u => u -> u -> Vertices4 u
- isoscelesTriangleVertices :: Floating u => u -> u -> Vertices3 u
- equilateralTriangleVertices :: Floating u => u -> Vertices3 u
- parallelogramVertices :: Floating u => u -> u -> Radian -> Vertices4 u
- isoscelesTrapeziumVertices :: Floating u => u -> u -> u -> Vertices4 u

# Documentation

rectangleVertices :: Num u => u -> u -> Vertices4 uSource

Vertices are from the center to (bl, br, tr, tl).

isoscelesTriangleVertices :: Floating u => u -> u -> Vertices3 uSource

base_width * height -> (BL,BR,Apex)

Vertices are from the centeriod to (bl, br,apex).

height -> (BL,BR,Apex)

Point is centroid (not incenter).

equilateralTriangleVertices :: Floating u => u -> Vertices3 uSource

side_length -> (BL,BR,Apex)

parallelogramVertices :: Floating u => u -> u -> Radian -> Vertices4 uSource

isoscelesTrapeziumVertices :: Floating u => u -> u -> u -> Vertices4 uSource