hoodle-render-0.6: Hoodle file renderer

Copyright(c) 2011-2013 Ian-Woo Kim
LicenseBSD3
MaintainerIan-Woo Kim <ianwookim@gmail.com>
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell98

Graphics.Hoodle.Render.Util.HitTest

Description

Hit-testing routines

Synopsis

Documentation

isPointInBBox Source #

Arguments

:: BBox 
-> (Double, Double)

point

-> Bool 

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

do2LinesIntersect Source #

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 -> Bool Source #

previously, hitTestLineStroke

do2BBoxIntersect :: BBox -> BBox -> Bool Source #

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

isBBox2InBBox1 Source #

Arguments

:: BBox

1st bbox

-> BBox

2nd bbox

-> Bool 

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

hltFilteredBy_StateT Source #

Arguments

:: (a -> Bool)

hit test condition

-> [a]

strokes to test

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

hltFilteredBy Source #

Arguments

:: (a -> Bool)

hit test condition

-> [a]

strokes to test

-> AlterList (NotHitted a) (Hitted a) 

highlight strokes filtered by a condition. previously mkHitTestAL

hltHittedByBBox Source #

Arguments

:: GetBBoxable a 
=> BBox

test bounding box

-> [a]

items to test

-> AlterList (NotHitted a) (Hitted a) 

hltHittedByLineRough Source #

Arguments

:: GetBBoxable 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