kcl-std → functions → hyperbolic

hyperbolicFunction in std::sketch

Add a hyperbolic section to an existing sketch.

hyperbolic(
  @sketch: Sketch,
  semiMajor: number(Length),
  semiMinor: number(Length),
  interiorAbsolute?: Point2d,
  endAbsolute?: Point2d,
  interior?: Point2d,
  end?: Point2d,
  tag?: tag,
): Sketch

Arguments

NameTypeDescriptionRequired
sketchSketchWhich sketch should this path be added to?Yes
semiMajornumber(Length)The semi major value, a, of the hyperbolic equation x^2 / a ^ 2 - y^2 / b^2 = 1.Yes
semiMinornumber(Length)The semi minor value, b, of the hyperbolic equation x^2 / a ^ 2 - y^2 / b^2 = 1.Yes
interiorAbsolutePoint2dAny point between the segment's start and end. Requires endAbsolute. Incompatible with interior or end.No
endAbsolutePoint2dWhere should this segment end? Requires interiorAbsolute. Incompatible with interior or end.No
interiorPoint2dAny point between the segment's start and end. This point is relative to the start point. Requires end. Incompatible with interiorAbsolute or endAbsolute.No
endPoint2dWhere should this segment end? This point is relative to the start point. Requires interior. Incompatible with interiorAbsolute or endAbsolute.No
tagtagCreate a new tag which refers to this arc.No

Returns

Sketch - A sketch is a collection of paths.

Examples

exampleSketch = startSketchOn(XY)
  |> startProfile(at = [0, 0])
  |> hyperbolic(
       end = [10, 0],
       semiMajor = 2,
       semiMinor = 1,
       interior = [0, 0],
     )
  |> close()

Rendered example of hyperbolic 0

Found a typo?