Skip to main content

ResQ.Core.Velocity

Velocity(double, double, double) Constructor

Represents a velocity vector in NED (North-East-Down) coordinate frame.
public Velocity(double Vx, double Vy, double Vz);

Parameters

Vx System.Double Velocity in North direction (m/s). Positive is North, negative is South. Vy System.Double Velocity in East direction (m/s). Positive is East, negative is West. Vz System.Double Velocity in Down direction (m/s). Positive is Down, negative is Up.

Example

// Drone moving North at 10 m/s, East at 5 m/s, and climbing at 2 m/s
var velocity = new Velocity(10.0, 5.0, -2.0);

// Calculate ground speed (ignoring altitude change)
double groundSpeed = Math.Sqrt(velocity.Vx * velocity.Vx + velocity.Vy * velocity.Vy);

Remarks

The NED frame is a local tangent plane coordinate system commonly used in aviation and robotics. Positive X is North, positive Y is East, and positive Z is Down.