Overview
/
KCL Standard Library
/
Functions
/
solver::angle

solver::angleFunction in std::solver

WARNING: This function is deprecated as of KCL 2.0.

Constrain lines to meet at a given angle.

Deprecated as of KCL 2.0. Use angleDimension for new angle constraints.

The angle is measured counterclockwise from the first line to the second line, modulo 180 degrees, so the order of the lines matters: angle([a, b]) == 30deg is equivalent to angle([b, a]) == 150deg. Because the angle is measured modulo 180 degrees, it does not matter which end of each line segment is its start or end.

Arguments

NameTypeDescriptionRequired
input[Segment; 2]The two line segments whose relative angle should match the value set with ==, measured counterclockwise from the first line to the second, modulo 180 degrees. The order of the lines matters.Yes
labelPositionPoint2dThe desired position of the constraint label.No

Examples