This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/csharp/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.

using Nutrient;
public record struct Vec2f(float X, float Y);

Fields

NameTypeDescription
XfloatThe X component in points.
YfloatThe Y component in points.