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
OutcomeCameraTransitionOutcomeGenerationulongThe generation of the first map snapshot that shows where the change left the camera, or 0 when the map closed first.
VelocityCameraVelocityHow 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
Outcome
public CameraTransitionOutcome Outcome { get; init; }
Property Value
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; }