Skip to main content

ResQ.Core

Velocity Class

Represents a velocity vector in NED (North-East-Down) coordinate frame.
public record Velocity : System.IEquatable<ResQ.Core.Velocity>
Inheritance System.Object → Velocity Implements System.IEquatable<Velocity>

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.
Constructors
Velocity(double, double, double)Represents a velocity vector in NED (North-East-Down) coordinate frame.
Properties
VxVelocity in North direction (m/s). Positive is North, negative is South.
VyVelocity in East direction (m/s). Positive is East, negative is West.
VzVelocity in Down direction (m/s). Positive is Down, negative is Up.