#ifndef SEGMENT_H #define SEGMENT_H #include "../fixed.h" #include #include "camera.h" class Segment { public: Segment(); Segment( uint16_t n_seg ); Segment( int16_t x, int16_t y, double z, int8_t c ); Segment( int16_t x, int16_t y, double z, int8_t c, int8_t left, int8_t right ); ~Segment(); void Project3DFP( camera* c ); int8_t Curve=0; int16_t CumulatedCurve=0; // World Coordinates (X,Y,Z) int16_t wX=0; int16_t wY=0; double wZ=0.0; // Screen Coordinates (X, Y) + width of the projected Road int16_t X=0; int16_t Y=0; int16_t W=0; // Decorations on the Road (Left and Right) int8_t LDeco=-1; int8_t RDeco=-1; int8_t DScale=0; }; #endif // SEGMENT_H