This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/types/vec2f.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. vec2f

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 vec2f

Construction

vec2f(x: float, y: float)

Fields

FieldTypeDescription
xfloatThe X component in points.
yfloatThe Y component in points.

Usage Example

from nutrient_sdk.vec2f import vec2f
value = vec2f(x=36.0, y=72.0)