modelling-tasks-0.0.0.1
Safe HaskellNone
LanguageHaskell2010

Modelling.Auxiliary.Diagrams

Synopsis

Documentation

arrowheadDiamond :: RealFloat n => Angle n -> ArrowHT n Source #

arrowheadFilledDiamond :: RealFloat n => Angle n -> ArrowHT n Source #

arrowheadTriangle :: RealFloat n => Angle n -> ArrowHT n Source #

arrowheadV :: RealFloat n => Angle n -> ArrowHT n Source #

arrowheadVee :: RealFloat n => Angle n -> ArrowHT n Source #

connectOutside'' :: (IsName n1, IsName n2, RealFloat n, Show n, Typeable n) => ArrowOpts n -> n1 -> n2 -> QDiagram SVG V2 n Any -> QDiagram SVG V2 n Any Source #

connectWithPath :: (IsName n1, IsName n2) => ArrowOpts Double -> PreparedFont Double -> DirType -> n1 -> n2 -> Maybe String -> Maybe String -> Maybe String -> Path V2 Double -> QDiagram SVG V2 Double Any -> QDiagram SVG V2 Double Any Source #

flipArrow :: OrderedField n => ArrowHT n -> ArrowHT n Source #

Makes an arrow head an arrow tail and vice versa.

nonEmptyPathBetween :: forall p1 p2 (v :: Type -> Type) n m b. (IsName p1, IsName p2, Metric v, RealFloat n, Semigroup m) => Path v n -> p1 -> p2 -> QDiagram b v n m -> Path v n Source #

pointAtShiftedBy :: (Floating (N p), Ord (N p), Affine (Codomain p), Parametric p, Parametric (Tangent p), Diff (Codomain p) ~ V2, V p ~ V2) => p -> N p -> V2 (N p) -> V2 (N p) -> Codomain p (N p) Source #

The point on the shaft at the given parameter, shifted along the normal of the shaft at that point.

If the tangent vanishes at that parameter (e.g. on a segment of length zero or at a cusp of a Bézier curve), the direction of the shaft around that parameter is used instead, considering increasingly larger surroundings. If the shaft does not have any direction at all (i.e. is a single point), no shifting happens.

text' Source #

Arguments

:: PreparedFont Double

which font to use

-> Double

font size

-> String

what to write

-> Diagram B 

Render normal text as a diagram.

textU Source #

Arguments

:: PreparedFont Double

which font to use

-> Double

font size

-> String

what to write

-> Diagram B 

Render underlined text as a diagram.

trailBetween :: (IsName n1, IsName n2, Semigroup m) => Path V2 Double -> n1 -> n2 -> QDiagram b V2 Double m -> Located (Trail V2 Double) Source #

veeArrow :: ArrowHT Double Source #