chiark
/
gitweb
/
~ian
/
moebius3.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
symbolic: actually fix sinc
[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)