xxxxxxxxxx
import std.stdio, std.typecons;
struct Vector3f {
float x, y, z;
this(this);
}
struct Ray {
RefCounted!Vector3f origin;
RefCounted!Vector3f dir;
this(RefCounted!Vector3f origin, RefCounted!Vector3f dir) {
this.origin = origin;
this.dir = dir;
}
}
void main(string[] args)
{
auto v1 = RefCounted!Vector3f(Vector3f(0, 0, 0));
auto v2 = RefCounted!Vector3f(Vector3f(0, 0, 0));
Ray(v1, v2);
}