Source codeContentsIndex
Geometry
Description
The module Geometry exports basic geometric types and functionality.
Synopsis
newtype Distance = Distance Int
type Size = (Distance, Distance)
type Coord = [Position]
type Position = (Distance, Distance)
type Geometry = (Distance, Distance, Distance, Distance)
cm :: Double -> Distance
pp :: Double -> Distance
mm :: Double -> Distance
ic :: Double -> Distance
tocm :: Distance -> Double
toinch :: Distance -> Double
Documentation
newtype Distance
Constructors
Distance Int
Instances
HasIndex Editor (Distance, Distance) BaseIndex
HasIndex Editor (Distance, Distance) BaseIndex
(HasIndex Editor i BaseIndex) => HasIndex Editor i (Distance, Distance)
(HasIndex Editor i BaseIndex) => HasIndex Editor i (Distance, Distance)
HasSelectionBaseIndexRange Editor (Distance, Distance)
HasSelectionBaseIndexRange Editor (Distance, Distance)
HasSelectionBaseIndex Editor ((Distance, Distance), (Distance, Distance))
HasSelectionBaseIndex Editor ((Distance, Distance), (Distance, Distance))
HasSelectionBaseIndex Editor ((Distance, Distance), (Distance, Distance))
HasSelectionBaseIndex Editor ((Distance, Distance), (Distance, Distance))
HasInsertionCursorIndexGet Editor (Distance, Distance)
HasInsertionCursorIndexGet Editor (Distance, Distance)
GUIValue (Distance, Distance)
GUIValue (Distance, Distance)
GUIValue (Distance, Distance, Distance, Distance)
GUIValue (Distance, Distance, Distance, Distance)
GUIValue (Distance, Distance, Distance, Distance)
GUIValue (Distance, Distance, Distance, Distance)
GUIValue [(Distance, Distance)]
GUIValue [(Distance, Distance)]
Show Distance
Read Distance
GUIValue Distance
Enum Distance
Num Distance
Real Distance
Integral Distance
GUIValue [Distance]
type Size = (Distance, Distance)
The Size datatype - a pair of two Distance values.
type Coord = [Position]
type Position = (Distance, Distance)
The Position - a pair of two Distance values.
type Geometry = (Distance, Distance, Distance, Distance)
cm :: Double -> Distance
pp :: Double -> Distance
Conversion from points to Distance.
mm :: Double -> Distance
Conversion from mm to Distance.
ic :: Double -> Distance
Conversion from inch to Distance.
tocm :: Distance -> Double
Conversion from Distance to cm.
toinch :: Distance -> Double
Conversion from Distance to inch.
Produced by Haddock version 0.3