May I cast like:
struct Point
{
float x, y, z;
float r, g, b, a;
}
Point[] points;
void foo(float[] float_array) {};
foo(cast(float[]) points); // is it safe?
May be more elegant way do express this exists?
Thanks
May I cast like:
struct Point
{
float x, y, z;
float r, g, b, a;
}
Point[] points;
void foo(float[] float_array) {};
foo(cast(float[]) points); // is it safe?
May be more elegant way do express this exists?
Thanks