#pragma once #include "shape.h" // Figura: Malla ondeante 3D (Wave Grid) // Comportamiento: Grid 2D paralelo a pantalla con ondas + pivoteo sutil en esquinas // Ecuaciones: z = A * sin(kx*x + phase) * cos(ky*y + phase) + pivoteo class WaveGridShape : public Shape { private: float tilt_x_ = 0.0f; // Ángulo de pivoteo en eje X (esquinas adelante/atrás) float tilt_y_ = 0.0f; // Ángulo de pivoteo en eje Y (esquinas izq/der) float phase_ = 0.0f; // Fase de animación de ondas (rad) float grid_size_ = 0.0f; // Tamaño del grid (píxeles) float amplitude_ = 0.0f; // Amplitud de las ondas (píxeles) int grid_cols_ = 0; // Número de columnas del grid int grid_rows_ = 0; // Número de filas del grid int num_points_ = 0; // Cantidad total de puntos 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 "WAVE GRID"; } float getScaleFactor(float screen_height) const override; };