()
| 32 | |
| 33 | |
| 34 | def test_length(): |
| 35 | p = geom.Vector3D([1, 2, 4]) |
| 36 | if p.length() != math.sqrt(1 + 4 + 16): |
| 37 | raise ValueError("[Test] Wrong vector length") |
| 38 | |
| 39 | p_normalized = p.normalize() |
| 40 | if p_normalized.length() != 1: |
| 41 | raise ValueError("[Test] Wrong vector length") |
| 42 | |
| 43 | |
| 44 | def test_operations(): |
no test coverage detected