2D Distance

From Visuino
Revision as of 04:38, 8 September 2025 by Visuino (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File:TArduino2DDistance.png

Summary

Calculates the Euclidean distance between two points in 2D space from analog inputs.

Description

The 2D Distance component computes the distance between a start point and an end point using their X and Y analog values. This is useful for position tracking, motion detection, or measuring displacement in planar systems.

Diagram:


Pins

Input Pins

  • Start X (analog) – X-coordinate of the starting point.
  • Start Y (analog) – Y-coordinate of the starting point.
  • End X (analog) – X-coordinate of the ending point.
  • End Y (analog) – Y-coordinate of the ending point.

Output Pins

  • Out (analog) – Analog value representing the calculated distance between the start and end points.

Categories