gumyr / build123d

A python CAD programming library
Apache License 2.0
402 stars 75 forks source link

PolarLine with negative angle doesn't seem to work #276

Closed gumyr closed 11 months ago

gumyr commented 11 months ago

This test:

import math
from build123d import *
from ocp_vscode import *

angle = -30
with BuildLine(Plane.XZ) as polar_test:
    p = PolarLine((0, 0), 1, angle)

assert (p @ 1).X == math.cos(math.radians(angle))
assert (p @ 1).Z == math.sin(math.radians(angle))
show(polar_test)

passes.