Skip to content

Commit

Permalink
Merge pull request #19 from Clockmender/Trig-Waves
Browse files Browse the repository at this point in the history
Add Trig Waves Functions
  • Loading branch information
ermo committed May 9, 2020
2 parents b3c53e1 + 556525e commit c7ac9d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
bl_info = {
"name": "Precision Drawing Tools (PDT)",
"author": "Alan Odom (Clockmender), Rune Morling (ermo)",
"version": (1, 2, 2),
"blender": (2, 80, 0),
"version": (1, 4, 0),
"blender": (2, 82, 0),
"location": "View3D > UI > PDT",
"description": "Precision Drawing Tools for Acccurate Modelling",
"warning": "",
Expand Down
7 changes: 4 additions & 3 deletions pdt_tangent.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def get_tangent_points(context, hloc_0, vloc_0, radius_0, hloc_p, vloc_p):
vloc_t1: Vertical Location of First Tangent Point
vloc_t2: Vertical Location of Second Tangent Point
"""
# Uses basic Pythagorus' theorum to compute locations

# Uses basic Pythagorus' theorem to compute locations
#
numerator = (radius_0 ** 2 * (hloc_p - hloc_0)) + (
radius_0
Expand Down Expand Up @@ -296,7 +297,7 @@ def tangent_setup(context, pg, plane, obj_data, centre_0, centre_1, centre_2, ra
"""

if mode in {"outer", "both"}:
# Uses basic trigonometry and Pythagorus' theorum to compute locations
# Uses basic trigonometry and Pythagorus' theorem to compute locations
#
if radius_0 == radius_1:
# No intersection point for outer tangents
Expand Down Expand Up @@ -354,7 +355,7 @@ def tangent_setup(context, pg, plane, obj_data, centre_0, centre_1, centre_2, ra
"""

if mode in {"inner", "both"}:
# Uses basic trigonometry and Pythagorus' theorum to compute locations
# Uses basic trigonometry and Pythagorus' theorem to compute locations
#
hloc_pi, vloc_pi = get_tangent_intersect_inner(
centre_0[a1], centre_0[a2], centre_1[a1], centre_1[a2], radius_0, radius_1
Expand Down

0 comments on commit c7ac9d4

Please sign in to comment.