chiark / gitweb /
findcurve handling: fflush stdout
[moebius3.git] / moenp.py
1
2 from __future__ import print_function
3
4 import numpy as np
5
6 tau = np.pi * 2
7
8 origin = np.array((0,0,0))
9 unit_x = np.array((1,0,0))
10 unit_y = np.array((0,1,0))
11 unit_z = np.array((0,0,1))
12
13 def unit_v(v):
14   return v / np.linalg.norm(v)