| Copyright | (C) Frank Staals | 
|---|---|
| License | see the LICENSE file | 
| Maintainer | Frank Staals | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Data.Geometry.Box
Contents
Description
Orthogonal \(d\)-dimensiontal boxes (e.g. rectangles)
Synopsis
- module Data.Geometry.Box.Internal
- topSide :: Num r => Rectangle p r -> LineSegment 2 p r
- leftSide :: Num r => Rectangle p r -> LineSegment 2 p r
- bottomSide :: Num r => Rectangle p r -> LineSegment 2 p r
- rightSide :: Num r => Rectangle p r -> LineSegment 2 p r
- sides :: Num r => Rectangle p r -> (LineSegment 2 p r, LineSegment 2 p r, LineSegment 2 p r, LineSegment 2 p r)
- sides' :: Num r => Rectangle p r -> (LineSegment 2 p r, LineSegment 2 p r, LineSegment 2 p r, LineSegment 2 p r)
Documentation
module Data.Geometry.Box.Internal
bottomSide :: Num r => Rectangle p r -> LineSegment 2 p r Source #
Oriented from *left to right*
rightSide :: Num r => Rectangle p r -> LineSegment 2 p r Source #
The right side, oriented from *bottom* to top
sides :: Num r => Rectangle p r -> (LineSegment 2 p r, LineSegment 2 p r, LineSegment 2 p r, LineSegment 2 p r) Source #
The sides of the rectangle, in order (Top, Right, Bottom, Left). The sides
 themselves are also oriented in clockwise order. If, you want them in the
 same order as the functions topSide, bottomSide, leftSide, and
 rightSide, use sides' instead.
sides' :: Num r => Rectangle p r -> (LineSegment 2 p r, LineSegment 2 p r, LineSegment 2 p r, LineSegment 2 p r) Source #
The sides of the rectangle. The order of the segments is (Top, Right,
 Bottom, Left).  Note that the segments themselves, are oriented as described
 by the functions topSide, bottomSide, leftSide, rightSide (basically: from
 left to right, and from bottom to top). If you want the segments oriented
 along the boundary of the rectangle, use the sides function instead.