curves-1.1.0.2: Library for drawing curve based images.

Safe HaskellNone
LanguageHaskell98

Graphics.Curves.Geometry

Description

Combinators for drawing various geometric figures.

Synopsis

Documentation

rectangle :: Point -> Point -> Image Source

Draw an axis-aligned rectangle with the given opposite corners.

triangle :: Length -> Length -> Length -> Image Source

Draw a triangle with the given side lengths. The corner opposite the third side is located at the origin and the first side is drawn along the x-axis.

triangleA :: Length -> Length -> Angle -> Image Source

Draw a triangle given by two side lengths and an angle. The corner of the angle is drawn at the origin and the first side along the x-axis.

triangleAA :: Length -> Angle -> Angle -> Image Source

Draw a triangle given by two angles and the length of the side shared by the angles. The first angle is drawn at the origin and the side along the x-axis.

regularPoly :: Int -> Image Source

Draw an n-sided regular polygon centered at the origin and one corner at unitY.

angleArc Source

Arguments

:: Scalar

Radius of the arc in pixels

-> Point

A

-> Point

B

-> Point

C

-> Image 

Draw an angle arc for the counter clockwise angle BAC.

labelledAngle Source

Arguments

:: String 
-> Vec

Position of the text relative to the angle

-> Point 
-> Point 
-> Point 
-> Image 

Draw an angle arc labelled by the given string.

arrow :: Point -> Point -> Image Source

Draw a line segment with an arrow head.