Table of Contents

Interface ICurve

Namespace
Xui.Core.Curves2D
Assembly
Core.dll

Represents a common interface for evaluable 2D curves.

public interface ICurve

Properties

this[NFloat]

Provides indexer access as an alias for Lerp(NFloat).

Point this[NFloat t] { get; }

Parameters

t NFloat

Property Value

Point

Methods

Length()

Computes an approximate arc length using 16 steps.

NFloat Length()

Returns

NFloat

Length(NFloat)

Computes a refined approximation of arc length with a specified precision.

NFloat Length(NFloat precision)

Parameters

precision NFloat

Returns

NFloat

Lerp(NFloat)

Evaluates the curve at the given normalized parameter t in [0, 1].

Point Lerp(NFloat t)

Parameters

t NFloat

Returns

Point

Tangent(NFloat)

Computes the tangent vector at the specified t.

Vector Tangent(NFloat t)

Parameters

t NFloat

Returns

Vector