Created
May 5, 2016 10:09
-
-
Save mangtronix/ed28522fc48e5d1947d066cb32f81cd4 to your computer and use it in GitHub Desktop.
Bisect an angle between two lines, for skildall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from FreeCAD import Base | |
A = Base.Vector(10,3,0) | |
B = Base.Vector(1,10,0) | |
C = Base.Vector(0,0,0) | |
dirCB = B-C | |
dirCB.normalize() | |
dirCA = A-C | |
dirCA.normalize() | |
dirCc = dirCA + dirCB | |
dirCc.normalize() | |
d = 1 # for example | |
cxcy = dirCc * d + C | |
Part.show(Part.makeLine(C,B)) | |
Part.show(Part.makeLine(C,A)) | |
Part.show(Part.makeLine(C,cxcy)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment