Diagrams.TwoD

# R^2

data R2

r2

unr2

type P2

p2

unp2

type T2

unitX

unitY

unit_X

unit_Y

direction

fromDirection

e

# Angles

tau

class Angle a

data Turn

type CircleFrac

data Rad

data Deg

fullCircle

convertAngle

# Paths

## Stroking

stroke

stroke'

strokeT

strokeT'

strokeLine

strokeLoop

strokeLocT

strokeLocLine

strokeLocLoop

data FillRule

fillRule

data StrokeOpts a

## Clipping

clipBy

# Shapes

## Rules

hrule

vrule

## Circle-ish things

unitCircle

circle

ellipse

ellipseXY

arc

arc'

arcCW

wedge

## General polygons

polygon

polyTrail

data PolygonOpts

data PolyType

data PolyOrientation

## Star polygons

data StarOpts

star

## Regular polygons

regPoly

triangle

eqTriangle

square

pentagon

hexagon

septagon

octagon

nonagon

decagon

hendecagon

dodecagon

## Other special polygons

unitSquare

rect

## Other shapes

roundedRect

roundedRect'

data RoundedRectOpts

# Text

text

topLeftText

alignedText

baselineText

font

fontSize

italic

oblique

bold

# Images

image

# Transformations

## Rotation

rotation

rotate

rotateBy

rotationAbout

rotateAbout

## Scaling

scalingX

scaleX

scalingY

scaleY

scaling

scale

scaleToX

scaleToY

scaleUToX

scaleUToY

## Translation

translationX

translateX

translationY

translateY

translation

translate

## Reflection

reflectionX

reflectX

reflectionY

reflectY

reflectionAbout

reflectAbout

## Shears

shearingX

shearX

shearingY

shearY

# Combinators

## Combining multiple diagrams

(===)

(|||)

atAngle

hcat

hcat'

vcat

vcat'

## Spacing and envelopes

strutX

strutY

padX

padY

extrudeLeft

extrudeRight

extrudeBottom

extrudeTop

view

## Background

boundingRect

bg

# Alignment

alignL

alignR

alignT

alignB

alignTL

alignTR

alignBL

alignBR

alignX

alignY

centerX

centerY

centerXY

# Size

## Computing size

width

height

size2D

sizeSpec2D

extentX

extentY

center2D

## Specifying size

data SizeSpec2D

mkSizeSpec

## Adjusting size

sized

sizedAs

# Visual aids for understanding the internal model

showOrigin

showOrigin'

data OriginOpts

showLabels