summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/panelize/utility.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-29 21:08:55 +0100
committerjaseg <git@jaseg.de>2022-01-29 21:08:55 +0100
commit1d0336056f2b29a95148768bfc5e805afad27cba (patch)
tree5939e539db7418834c85d916b62ae6d03b14a1af /gerbonara/gerber/panelize/utility.py
parentd5bbfade80f1927f2512b9f5bbb723255ec8926d (diff)
downloadgerbonara-1d0336056f2b29a95148768bfc5e805afad27cba.tar.gz
gerbonara-1d0336056f2b29a95148768bfc5e805afad27cba.tar.bz2
gerbonara-1d0336056f2b29a95148768bfc5e805afad27cba.zip
Remove obsolete files
Diffstat (limited to 'gerbonara/gerber/panelize/utility.py')
-rw-r--r--gerbonara/gerber/panelize/utility.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/gerbonara/gerber/panelize/utility.py b/gerbonara/gerber/panelize/utility.py
deleted file mode 100644
index 0d57979..0000000
--- a/gerbonara/gerber/panelize/utility.py
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-# Copyright 2019 Hiroshi Murayama <opiopan@gmail.com>
-
-from math import cos, sin, pi, sqrt
-
-def is_equal_value(a, b, error_range=0):
- return (a - b) * (a - b) <= error_range * error_range
-
-def is_equal_point(a, b, error_range=0):
- return is_equal_value(a[0], b[0], error_range) and \
- is_equal_value(a[1], b[1], error_range)
-
-def normalize_vec2d(vec):
- length = sqrt(vec[0] * vec[0] + vec[1] * vec[1])
- return (vec[0] / length, vec[1] / length)
-
-def dot_vec2d(vec1, vec2):
- return vec1[0] * vec2[0] + vec1[1] * vec2[1]