geometry.Vector2
geometry.Vector2(value, free=False, name=None, bounds=None, _constraints=list())
2D vector parameter (sketch points, planar offsets, profile vertices).
Sketch entities live in plane coordinates, so their points carry 2 DOF — using Vector2 instead of a z-padded :class:Vector keeps constraint DOF counting honest.
Example
vertex = Vector2(value=[1.0, 0.5], free=True, name='v0')
Attributes
| Name | Description |
|---|---|
| xy | Alias for .value (2D coordinates). |
Methods
| Name | Description |
|---|---|
| norm | Compute Euclidean norm. |
norm
geometry.Vector2.norm()
Compute Euclidean norm.