-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcubicbezier.cabal
68 lines (64 loc) · 2.27 KB
/
cubicbezier.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Name: cubicbezier
Version: 0.6.0.7
Synopsis: Efficient manipulating of 2D cubic bezier curves.
Category: Graphics, Geometry, Typography
Copyright: Kristof Bastiaensen (2017)
Stability: Unstable
License: BSD3
License-file: LICENSE
Author: Kristof Bastiaensen
Maintainer: Kristof Bastiaensen, byorgey@gmail.com
Bug-Reports: /~https://github.com/kuribas/cubicbezier/issues
Build-type: Simple
Cabal-version: >=1.10
Description: This library supports efficient manipulating of 2D cubic bezier curves, for use in graphics or typography. Supported features are:
.
Evaluating bezier curves and derivatives, affine transformations on bezier curves, arclength and inverse arclength, intersections between two curves, intersection between a curve and a line, curvature and radius of curvature, finding tangents parallel to a vector, finding inflection points and cusps.
.
It also supports polynomial root finding with Bernstein polynomials.
.
The module "Geom2D.CubicBezier" exports all the cubic bezier functions. The module "Geom2D"
contains general 2D geometry functions and transformations.
Source-repository head
type: git
location: /~https://github.com/kuribas/cubicbezier
Flag Debug
description: Enable debug messages
Manual: True
default: False
Library
if flag(Debug)
cpp-options: -DDEBUG
Ghc-options: -Wall
Build-depends: base >= 4.8 && < 5, containers >= 0.5.3, integration >= 0.1.1, vector >= 0.10,
matrices >= 0.5.0, microlens >= 0.1.2, microlens-th >= 0.1.2, microlens-mtl >= 0.1.2, mtl >= 2.1.1,
fast-math >= 1.0.0, vector-space >= 0.10.4
if !impl(ghc>=8.0)
Build-depends: semigroups >= 0.16
Exposed-Modules:
Geom2D
Geom2D.CubicBezier
Geom2D.CubicBezier.Basic
Geom2D.CubicBezier.Approximate
Geom2D.CubicBezier.Outline
Geom2D.CubicBezier.Curvature
Geom2D.CubicBezier.Overlap
Geom2D.CubicBezier.Intersection
Geom2D.CubicBezier.MetaPath
Geom2D.CubicBezier.Stroke
Math.BernsteinPoly
Geom2D.CubicBezier.Numeric
default-language: Haskell2010
test-suite test
type: exitcode-stdio-1.0
hs-source-dirs:
tests
main-is:
test.hs
build-depends:
base >= 4 && < 5,
tasty >= 0.8,
tasty-hunit >= 0.9,
parsec >= 3.0,
cubicbezier
default-language: Haskell2010