Module Mlpost__.Path
include Mlpost.MetaPath.BaseDefs
type direction
= Mlpost__.Types.direction
val vec : Mlpost__.Types.point -> Mlpost__.Types.direction
val curl : float -> Mlpost__.Types.direction
val noDir : Mlpost__.Types.direction
type joint
= Mlpost__.Types.joint
val jLine : Mlpost__.Types.joint
val jCurve : Mlpost__.Types.joint
val jCurveNoInflex : Mlpost__.Types.joint
val jTension : float -> float -> Mlpost__.Types.joint
val jControls : Mlpost__.Types.point -> Mlpost__.Types.point -> Mlpost__.Types.joint
type knot
= Mlpost__.Types.knot
val of_path : Mlpost__.Types.path -> Mlpost__.Types.metapath
val of_metapath : Mlpost__.Types.metapath -> Mlpost__.Types.path
val to_path : Mlpost__.Types.metapath -> Mlpost__.Types.path
val to_metapath : Mlpost__.Types.path -> Mlpost__.Types.metapath
val start : Mlpost__.Types.knot -> Mlpost__.Types.metapath
val metacycle : Mlpost__.Types.direction -> Mlpost__.Types.joint -> Mlpost__.Types.metapath -> Mlpost__.Types.path
val fullcircle : Mlpost__.Types.path
val halfcircle : Mlpost__.Types.path
val quartercircle : Mlpost__.Types.path
val unitsquare : Mlpost__.Types.path
val cut_after : Mlpost__.Types.path -> Mlpost__.Types.path -> Mlpost__.Types.path
val cut_before : Mlpost__.Types.path -> Mlpost__.Types.path -> Mlpost__.Types.path
val build_cycle : Mlpost__.Types.path list -> Mlpost__.Types.path
val subpath : float -> float -> Mlpost__.Types.path -> Mlpost__.Types.path
val subpathn : float -> float -> Mlpost__.Types.path -> Mlpost__.Types.path
val length : Mlpost__.Types.path -> float
val defaultjoint : Mlpost__.Types.joint
val defaultdir : Mlpost__.Types.direction
val transform : Mlpost__.Types.transform -> Mlpost__.Types.path -> Mlpost__.Types.path
val start : Mlpost__.Types.knot -> Mlpost__.Types.path
val append : ?style:Mlpost__.Types.joint -> Mlpost__.Types.path -> Mlpost__.Types.path -> Mlpost__.Types.path
type t
= Mlpost__.Types.path
type metapath
= Mlpost__.Types.metapath
val knotp : ?l:Mlpost__.Types.direction -> ?r:Mlpost__.Types.direction -> Mlpost__.Types.point -> Mlpost__.Types.knot
val knot : ?l:Mlpost__.Types.direction -> ?r:Mlpost__.Types.direction -> ?scale:(float -> float) -> (float * float) -> Mlpost__.Types.knot
val knotn : ?l:Mlpost__.Types.direction -> ?r:Mlpost__.Types.direction -> (float * float) -> Mlpost__.Types.knot
val knotlist : (Mlpost__.Types.direction * Mlpost__.Types.point * Mlpost__.Types.direction) list -> Mlpost__.Types.knot list
val cycle_tmp : ?dir:Mlpost__.Types.direction -> ?style:Mlpost__.Types.joint -> Mlpost__.Types.path -> Mlpost__.Types.path
val cycle : ?dir:Mlpost__.Types.direction -> ?style:Mlpost__.Types.joint -> Mlpost__.Types.path -> Mlpost__.Types.path
val concat : ?style:Mlpost__.Types.joint -> Mlpost__.Types.path -> Mlpost__.Types.knot -> Mlpost__.Types.path
val pathk : ?style:Mlpost__.Types.joint -> ?cycle:Mlpost__.Types.joint -> Mlpost__.Types.knot list -> Mlpost__.Types.path
val pathp : ?style:Mlpost__.Types.joint -> ?cycle:Mlpost__.Types.joint -> Mlpost__.Types.point list -> Mlpost__.Types.path
val pathn : ?style:Mlpost__.Types.joint -> ?cycle:Mlpost__.Types.joint -> (float * float) list -> Mlpost__.Types.path
val path : ?style:Mlpost__.Types.joint -> ?cycle:Mlpost__.Types.joint -> ?scale:(float -> float) -> (float * float) list -> Mlpost__.Types.path
val jointpathk : Mlpost__.Types.knot list -> Mlpost__.Types.joint list -> Mlpost__.Types.path
val jointpathp : Mlpost__.Types.point list -> Mlpost__.Types.joint list -> Mlpost__.Types.path
val jointpathn : (float * float) list -> Mlpost__.Types.joint list -> Mlpost__.Types.path
val jointpath : ?scale:(float -> float) -> (float * float) list -> Mlpost__.Types.joint list -> Mlpost__.Types.path
val scale : float -> Mlpost__.Types.path -> Mlpost__.Types.path
val rotate : float -> Mlpost__.Types.path -> Mlpost__.Types.path
val shift : Mlpost__.Matrix.point -> Mlpost__.Types.path -> Mlpost__.Types.path
val yscale : float -> Mlpost__.Types.path -> Mlpost__.Types.path
val xscale : float -> Mlpost__.Types.path -> Mlpost__.Types.path
val point : float -> Mlpost__.Types.path -> Mlpost__.Spline_lib.point
val direction : float -> Mlpost__.Types.path -> Mlpost__.Spline_lib.point
val pointn : float -> Mlpost__.Types.path -> Mlpost__.Spline_lib.point
val directionn : float -> Mlpost__.Types.path -> Mlpost__.Spline_lib.point
val strip : float -> Mlpost__.Types.path -> Mlpost__.Types.path
type orientation
=
|
Up
|
Down
|
Left
|
Right
|
Upn of Mlpost.Num.t
|
Downn of Mlpost.Num.t
|
Leftn of Mlpost.Num.t
|
Rightn of Mlpost.Num.t
val divise_dir : orientation list -> orientation list * orientation list * orientation list
val dist_horizontal : orientation list -> float -> float -> float list
val dist_vertical : orientation list -> float -> float -> float list
val smart_path : ?style:Mlpost__.Types.joint -> orientation list -> Mlpost__.Point_lib.t -> Mlpost__.Point_lib.t -> Mlpost__.Types.path
val draw : ?brush:Mlpost__.Types.brush -> ?color:Mlpost__.Types.color -> ?pen:Mlpost__.Types.pen -> ?dashed:Mlpost__.Types.dash -> Mlpost__.Types.path -> Mlpost__.Types.commandpic
val fill : ?color:Mlpost__.Types.color -> Mlpost__.Types.path -> Mlpost__.Types.commandpic