Represents a 2D vector with X and Y components as floating-point values. Used to specify positions, sizes, and other 2D measurements in PDF coordinate space.
from nutrient_sdk.vec2f import vec2fConstruction
vec2f(x: float, y: float)Fields
| Field | Type | Description |
|---|---|---|
x | float | The X component in points. |
y | float | The Y component in points. |
Usage Example
from nutrient_sdk.vec2f import vec2f
value = vec2f(x=36.0, y=72.0)