Table of Contents

Struct CameraTransitionEnd

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

The end of a camera change.

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

Remarks

See mln_camera_transition_end in the C API reference.

Constructors

CameraTransitionEnd(CameraTransitionOutcome, ulong, CameraVelocity)

The end of a camera change.

public CameraTransitionEnd(CameraTransitionOutcome Outcome, ulong Generation, CameraVelocity Velocity)

Parameters

Outcome CameraTransitionOutcome
Generation ulong

The generation of the first map snapshot that shows where the change left the camera, or 0 when the map closed first.

Velocity CameraVelocity

How fast a gesture's momentum still moved when it was cancelled, which the next gesture can add to its own release velocities. Zero for every other end.

Remarks

See mln_camera_transition_end in the C API reference.

Properties

Generation

The generation of the first map snapshot that shows where the change left the camera, or 0 when the map closed first.

public ulong Generation { get; init; }

Property Value

ulong

Outcome

public CameraTransitionOutcome Outcome { get; init; }

Property Value

CameraTransitionOutcome

Velocity

How fast a gesture's momentum still moved when it was cancelled, which the next gesture can add to its own release velocities. Zero for every other end.

public CameraVelocity Velocity { get; init; }

Property Value

CameraVelocity