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

solver::angleFunction in std::solver

Constrain lines to meet at a given angle.

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

Examples