hoodle-render-0.2: Hoodle file renderer

PortabilityGHC
Stabilityexperimental
MaintainerIan-Woo Kim <ianwookim@gmail.com>
Safe HaskellNone

Graphics.Hoodle.Render.Util.HitTest

Description

Hit-testing routines

Synopsis

Documentation

isPointInBBoxSource

Arguments

:: BBox 
-> (Double, Double)

point

-> Bool 

hit test of whether a point in a bbox previously, hitTestBBoxPoint

do2LinesIntersectSource

Arguments

:: ((Double, Double), (Double, Double))

line1

-> ((Double, Double), (Double, Double))

line2

-> Bool 

hit test of whether two lines intersect

doesLineHitStrk :: ((Double, Double), (Double, Double)) -> Stroke -> BoolSource

previously, hitTestLineStroke

do2BBoxIntersect :: BBox -> BBox -> BoolSource

Do two bounding boxes intersect with each other? previously, hitTestBBoxBBox

isBBox2InBBox1Source

Arguments

:: BBox

1st bbox

-> BBox

2nd bbox

-> Bool 

is the second bbox inside the first bbox? previously, hitTestInsideBBox

hltFilteredBy_StateTSource

Arguments

:: (a -> Bool)

hit test condition

-> [a]

strokes to test

-> State Bool (AlterList (NotHitted a) (Hitted a)) 

hltFilteredBySource

Arguments

:: (a -> Bool)

hit test condition

-> [a]

strokes to test

-> AlterList (NotHitted a) (Hitted a) 

highlight strokes filtered by a condition. previously mkHitTestAL

hltHittedByBBoxSource

Arguments

:: BBoxable a 
=> BBox

test bounding box

-> [a]

items to test

-> AlterList (NotHitted a) (Hitted a) 

hltHittedByLineRoughSource

Arguments

:: BBoxable a 
=> ((Double, Double), (Double, Double))

line

-> [a]

items to test

-> AlterList (NotHitted a) (Hitted a) 

only check if a line and bbox of item overlapped