47 lines
258 B
Markdown
47 lines
258 B
Markdown
|
# Vector
|
||
|
#### length(v)
|
||
|
|
||
|
|
||
|
|
||
|
#### norm(v)
|
||
|
|
||
|
|
||
|
|
||
|
#### project(a, b)
|
||
|
|
||
|
|
||
|
|
||
|
#### dot(a, b)
|
||
|
|
||
|
|
||
|
|
||
|
#### random()
|
||
|
|
||
|
|
||
|
|
||
|
#### angle_between(a,b)
|
||
|
|
||
|
|
||
|
|
||
|
#### angle(v)
|
||
|
|
||
|
|
||
|
|
||
|
#### rotate(v,angle)
|
||
|
|
||
|
|
||
|
|
||
|
#### equal(v1, v2, tol)
|
||
|
|
||
|
|
||
|
|
||
|
#### reflect(vec, plane)
|
||
|
|
||
|
|
||
|
|
||
|
#### reflect_point(vec, point)
|
||
|
|
||
|
|
||
|
|
||
|
|