formating
This commit is contained in:
parent
e94736f524
commit
6e6b00d58d
@ -4,8 +4,6 @@ import numpy as np
|
|||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import matplotlib.patches as patches
|
import matplotlib.patches as patches
|
||||||
import matplotlib
|
import matplotlib
|
||||||
import scipy
|
|
||||||
import scipy.signal
|
|
||||||
import tqdm
|
import tqdm
|
||||||
from extractors import Rect_Evaluator, Voronoi_Evaluator, Image_Wrapper
|
from extractors import Rect_Evaluator, Voronoi_Evaluator, Image_Wrapper
|
||||||
|
|
||||||
@ -58,7 +56,8 @@ class Plotter:
|
|||||||
|
|
||||||
def rotate(x, y, angle):
|
def rotate(x, y, angle):
|
||||||
radian = angle / 180 * 2 * np.pi
|
radian = angle / 180 * 2 * np.pi
|
||||||
return np.cos(radian) * x - np.sin(radian) * y, np.sin(radian) * x + np.cos(radian) * y
|
return np.cos(radian) * x - np.sin(radian) * y,\
|
||||||
|
np.sin(radian) * x + np.cos(radian) * y
|
||||||
|
|
||||||
|
|
||||||
def test_square():
|
def test_square():
|
||||||
|
Loading…
Reference in New Issue
Block a user