IGeoPath

Description

interface Tinman.Engine.Scenes.Data.IGeoPath<T val>

Derived from

IGeoPathBase
ICollector<T>

Extended by

GeoPath sealed

Represents a 3D path, created from the interpolation of a sequence of geo path samples.

Public / Methods

Add​All


public method AddAll → (1)

samples in : IBagConst<T>

[not-null]
The samples to append.

returns → IGeoPath<T>

this

Appends the given samples to this path.

New


[Pure]
public method New → ()

returns → IGeoPath<T>

The newly created and empty geo path.

Creates a new geo path using the same sample type and trait.

Sample​At


[Pure]
public method SampleAt → (1)

index in : int32

[0..IGeoPathBase.Count-1]
The path sample index.

returns → T

The path sample.

Returns the path sample at the given index.

Sample​On


[Pure]
public method SampleOn → (1)

timestamp in : float64

The timestamp value (see GeoPathSample.Timestamp).

returns → T

The path sample.

Returns the path sample at the given timestamp.

Transform

2 overloads


[Pure]
public method Transform1 → (3)

value in : GeoPathValue

The sample value to update.

in : float64

First linear coefficient.

in : float64

Second linear coefficient.

returns → IGeoPath<T>

The resulting geo path.

Transforms this geo path by applying a linear function to the input given sample value v:

v' = v * a + b

[Pure]
public method Transform2 → (3)

index in : int32

The sample value index (see IGeoPathSampleTrait.Count) to update.

in : float64

First linear coefficient.

in : float64

Second linear coefficient.

returns → IGeoPath<T>

The resulting geo path.

Transforms this geo path by applying a linear function to the input given sample value v:

v' = v * a + b