Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# py2d.Math.Vector

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
```Class for 2D Vectors.

Vectors v have an x and y component that can be accessed multiple ways:

- v.x, v.y
- v, v
- x,y = v.as_tuple()
```

src/p/y/Py2D-HEAD/py2d/SVG.py   Py2D(Download)
```import warnings
from collections import deque
from py2d.Math import Polygon, Vector, Transform
from py2d.Bezier import flatten_cubic_bezier, flatten_quadratic_bezier

```
```		def parse_vec(s):
x,y = s.split(",")
return Vector(float(x), float(y))

polys = []
verts = []
relative_pos = Vector(0.0,0.0)
```

src/p/y/py2d-0.1/py2d/SVG.py   py2d(Download)
```import warnings
from collections import deque
from py2d.Math import Polygon, Vector, Transform
from py2d.Bezier import flatten_cubic_bezier, flatten_quadratic_bezier

```
```		def parse_vec(s):
x,y = s.split(",")
return Vector(float(x), float(y))

polys = []
verts = []
relative_pos = Vector(0.0,0.0)
```

src/p/y/Py2D-HEAD/py2d/Bezier.py   Py2D(Download)
```"""

from py2d.Math import Vector, distance_point_line

```

src/p/y/py2d-0.1/py2d/Bezier.py   py2d(Download)
```"""

from py2d.Math import Vector, distance_point_line

```