Table of Contents

Struct CameraVelocity

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

How fast each part of a camera change moves.

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

Remarks

See mln_camera_velocity in the C API reference.

Constructors

CameraVelocity(ScreenPoint, double, double, double)

How fast each part of a camera change moves.

public CameraVelocity(ScreenPoint Pan, double Zoom, double Bearing, double Pitch)

Parameters

Pan ScreenPoint

How fast the map's content moves on the screen, in logical pixels per second.

Zoom double

In zoom levels per second.

Bearing double

In degrees per second.

Pitch double

In degrees per second.

Remarks

See mln_camera_velocity in the C API reference.

Properties

Bearing

In degrees per second.

public double Bearing { get; init; }

Property Value

double

Pan

How fast the map's content moves on the screen, in logical pixels per second.

public ScreenPoint Pan { get; init; }

Property Value

ScreenPoint

Pitch

In degrees per second.

public double Pitch { get; init; }

Property Value

double

Zoom

In zoom levels per second.

public double Zoom { get; init; }

Property Value

double