the Polygon() API function accept the const POINT* on 2nd parameter.
heres my class:
Code:
class position
{
    public:
    float X;
    float Y;
    float Z;
    float perespective;
    float foco;
    position(float posx=0, float posy=0, float posz=0,float FocalDistance=300)
    {
        X = posx;
        Y = posy;
        Z = posz;
        foco = FocalDistance;
    }
    operator POINT()
    {
        RECT WindowSize;
        GetClientRect(GetConsoleWindow(), & WindowSize);
        perespective = foco /(Z+foco);
        POINT pos;
        pos.x=trunc(X * perespective);
        pos.y=trunc(Y * perespective);
        return pos;
    }
};
heres my vector:
Code:
vector<position> Plane={ {-100, 50,0}, {-100, 50,1000}, {100, 50,1000},{100, 50,0}};
now how can i convert the Plane vector using the class overload(i think these is the right word\name) operator?