Liking cljdoc? Tell your friends :D

mafs.line


PointAnglecljs

(PointAngle opts)

Given a map opts, renders a line passing through point :point with angle :angle into a Mafs scene.

Supported options:

  • :point: a 2-vector of the form [<x> <y>].

  • :angle: angle in radians.

  • :color: any valid CSS color, or any keyword from mafs.core/Theme.

  • :opacity: Double in the range [0.0, 0.1] inclusive.

  • :weight: Double in the range [0.0, 0.1] inclusive specifying the weight of the line.

  • :style: "solid" or "dashed". Defaults to "solid".

Given a map `opts`, renders a line passing through point `:point` with angle
`:angle` into a Mafs scene.

Supported options:

- `:point`: a 2-vector of the form `[<x> <y>]`.

- `:angle`: angle in radians.

- `:color`: any valid [CSS
   color](https://developer.mozilla.org/en-US/docs/Web/CSS/color), or any keyword
   from [[mafs.core/Theme]].

- `:opacity`: Double in the range [0.0, 0.1] inclusive.

- `:weight`: Double in the range [0.0, 0.1] inclusive specifying the weight of
    the line.

- `:style`: "solid" or "dashed". Defaults to "solid".
sourceraw docstring

PointSlopecljs

(PointSlope opts)

Given a map opts, renders a line passing through point :point with slope :slope into a Mafs scene.

Supported options:

  • :point: a 2-vector of the form [<x> <y>].

  • :slope: number defining the slope of the line (amount of increase in the y direction for each unit increase in the x direction).

  • :color: any valid CSS color, or any keyword from mafs.core/Theme.

  • :opacity: Double in the range [0.0, 0.1] inclusive.

  • :weight: Double in the range [0.0, 0.1] inclusive specifying the weight of the line.

  • :style: "solid" or "dashed". Defaults to "solid".

Given a map `opts`, renders a line passing through point `:point` with slope
`:slope` into a Mafs scene.

Supported options:

- `:point`: a 2-vector of the form `[<x> <y>]`.

- `:slope`: number defining the slope of the line (amount of increase in the
  `y` direction for each unit increase in the `x` direction).

- `:color`: any valid [CSS
   color](https://developer.mozilla.org/en-US/docs/Web/CSS/color), or any keyword
   from [[mafs.core/Theme]].

- `:opacity`: Double in the range [0.0, 0.1] inclusive.

- `:weight`: Double in the range [0.0, 0.1] inclusive specifying the weight of
    the line.

- `:style`: "solid" or "dashed". Defaults to "solid".
sourceraw docstring

Segmentcljs

(Segment opts)

Given a map opts, renders a line segment between points :point1 and :point2 into a Mafs scene.

Supported options:

  • :point1: a 2-vector of the form [<x> <y>].

  • :point2: a 2-vector of the form [<x> <y>].

  • :color: any valid CSS color, or any keyword from mafs.core/Theme.

  • :opacity: Double in the range [0.0, 0.1] inclusive.

  • :weight: Double in the range [0.0, 0.1] inclusive specifying the weight of the line.

  • :style: "solid" or "dashed". Defaults to "solid".

Given a map `opts`, renders a line segment between points `:point1` and
`:point2` into a Mafs scene.

Supported options:

- `:point1`: a 2-vector of the form `[<x> <y>]`.

- `:point2`: a 2-vector of the form `[<x> <y>]`.

- `:color`: any valid [CSS
   color](https://developer.mozilla.org/en-US/docs/Web/CSS/color), or any keyword
   from [[mafs.core/Theme]].

- `:opacity`: Double in the range [0.0, 0.1] inclusive.

- `:weight`: Double in the range [0.0, 0.1] inclusive specifying the weight of
   the line.

- `:style`: "solid" or "dashed". Defaults to "solid".
sourceraw docstring

ThroughPointscljs

(ThroughPoints opts)

Given a map opts, renders a line between points :point1 and :point2 into a Mafs scene.

Supported options:

  • :point1: a 2-vector of the form [<x> <y>].

  • :point2: a 2-vector of the form [<x> <y>].

  • :color: any valid CSS color, or any keyword from mafs.core/Theme.

  • :opacity: Double in the range [0.0, 0.1] inclusive.

  • :weight: Double in the range [0.0, 0.1] inclusive specifying the weight of the line.

  • :style: "solid" or "dashed". Defaults to "solid".

Given a map `opts`, renders a line between points `:point1` and `:point2` into
a Mafs scene.

Supported options:

- `:point1`: a 2-vector of the form `[<x> <y>]`.

- `:point2`: a 2-vector of the form `[<x> <y>]`.

- `:color`: any valid [CSS
   color](https://developer.mozilla.org/en-US/docs/Web/CSS/color), or any keyword
   from [[mafs.core/Theme]].

- `:opacity`: Double in the range [0.0, 0.1] inclusive.

- `:weight`: Double in the range [0.0, 0.1] inclusive specifying the weight of
    the line.

- `:style`: "solid" or "dashed". Defaults to "solid".
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close