Table of Contents

Struct UnitBezier

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A timing curve from (0, 0) to (1, 1), with the control points (x1, y1) and (x2, y2).

public readonly record struct UnitBezier : IEquatable<UnitBezier>
Implements
Inherited Members

Remarks

x1 and x2 are between 0 and 1.

See mln_unit_bezier in the C API reference.

Constructors

UnitBezier(double, double, double, double)

A timing curve from (0, 0) to (1, 1), with the control points (x1, y1) and (x2, y2).

public UnitBezier(double X1, double Y1, double X2, double Y2)

Parameters

X1 double
Y1 double
X2 double
Y2 double

Remarks

x1 and x2 are between 0 and 1.

See mln_unit_bezier in the C API reference.

Properties

X1

public double X1 { get; init; }

Property Value

double

X2

public double X2 { get; init; }

Property Value

double

Y1

public double Y1 { get; init; }

Property Value

double

Y2

public double Y2 { get; init; }

Property Value

double