There is no copy assignment operator for plain arrays.
1 2 3 4
int foo[6];
int bar[6];
foo = bar; // error
for ( int i=0; i<6; ++i ) foo[i] = bar[i]; // ok "assignment of array"
You caninitialize an array.
Class Object3D does not have members "Position" or "Size".
Are they global variables or members of a base class?
If the latter, then why don't you initialize them in the constructor of the base class?
POINT to2D
{
(LONG) ( PositionX* Distance) / (Z + Distance),
(LONG)(PositionY * Distance) / (Z + Distance)
};
the PositionX and the others variables are float... but the POINT members are LONG...
warning: "warning: narrowing conversion of '((float)(LONG)(((Point3D*)this)->Point3D::PositionX * Distance) / (Z + Distance))' from 'float' to 'LONG' {aka 'long int'} inside { } [-Wnarrowing]|"
can i avoid these warning? i tried the casting conversion, but the warning remains :(