wumpus-basic-0.20.0: Basic objects and system code built on Wumpus-Core.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Basic.Geometry.Vertices

Description

Vertices generators for elementary objects - triangles.

Synopsis

Documentation

type Vertices2 u = (Vec2 u, Vec2 u)Source

type Vertices3 u = (Vec2 u, Vec2 u, Vec2 u)Source

type Vertices4 u = (Vec2 u, Vec2 u, Vec2 u, Vec2 u)Source

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)