Overview
/
KCL Standard Library
/
Functions
/
hyperbolic

hyperbolicFunction in std::sketch

WARNING: This function is experimental and may change or be removed.

Add a hyperbolic section to an existing sketch.

This is part of sketch v1 and is soft deprecated in favor of sketch-solve. Legacy sketch functions cannot be used with constraints; strongly prefer constraint-based sketch functions when possible. No constraint-based hyperbola is available yet; first try approximating the shape with one or more constrained arcs.

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
tagTagDeclCreate a new tag which refers to this arc.No

Returns

Sketch - A sketch is a collection of paths.

Examples

Rendered example of hyperbolic 0