geometry.Vector
geometry.Vector(value, free=False, name=None, bounds=None, _constraints=list())
3D vector parameter (position, offset, direction, size).
Example
position = Vector(value=[1.0, 2.0, 3.0], free=True, name='pos')
offset = Vector(value=[0, 0, 0], free=False)
Attributes
| Name | Description |
|---|---|
| xyz | Alias for .value (3D coordinates). |
Methods
| Name | Description |
|---|---|
| norm | Compute Euclidean norm. |
| normalize | Return a normalized Vector (unit length). |
norm
geometry.Vector.norm()
Compute Euclidean norm.
normalize
geometry.Vector.normalize()
Return a normalized Vector (unit length).