Skip to main content

flight_pattern

Function flight_pattern 

Source
pub fn flight_pattern(
    cx: f64,
    cy: f64,
    wingspan: f64,
    flap_speed: f64,
    t: f64,
) -> Vec<Value>
Expand description

Flight Pattern — Simula aleteo de aves

§Args

  • cx, cy: posición del cuerpo
  • wingspan: envergadura
  • flap_speed: velocidad del aleteo
  • t: tiempo

§Retorna

Array de líneas [{type: “body” | “wing”, x1, y1, x2, y2}, …]