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
PanScreenPointHow fast the map's content moves on the screen, in logical pixels per second.
ZoomdoubleIn zoom levels per second.
BearingdoubleIn degrees per second.
PitchdoubleIn 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
Pan
How fast the map's content moves on the screen, in logical pixels per second.
public ScreenPoint Pan { get; init; }
Property Value
Pitch
In degrees per second.
public double Pitch { get; init; }
Property Value
Zoom
In zoom levels per second.
public double Zoom { get; init; }