#pragma once #include "shape.h" // Figura: Espiral helicoidal 3D con distribución uniforme // Comportamiento: Rotación en eje Y + animación de fase vertical // Ecuaciones: x = r*cos(t), y = pitch*t + phase, z = r*sin(t) class HelixShape : public Shape { private: float angle_y_ = 0.0f; // Ángulo de rotación en eje Y (rad) float phase_offset_ = 0.0f; // Offset de fase para animación vertical (rad) float radius_ = 0.0f; // Radio de la espiral (píxeles) float pitch_ = 0.0f; // Separación vertical entre vueltas (píxeles) float total_height_ = 0.0f; // Altura total de la espiral (píxeles) int num_points_ = 0; // Cantidad de puntos generados public: void generatePoints(int num_points, float screen_width, float screen_height) override; void update(float delta_time, float screen_width, float screen_height) override; void getPoint3D(int index, float& x, float& y, float& z) const override; const char* getName() const override { return "HELIX"; } float getScaleFactor(float screen_height) const override; };