Just convert Vector3 to Vector3D, since Vector3D is just a structure with member variables X, Y, Z to represent the components x, y, z, a function like this should work fine:
public static Vector3D ToVector3D(Vector3 input) { return new Vector3D( (float)input.X, (float)input.Y, (float)input.Z ); }
Perhaps you could implement it as a Vector3 extension (i.e. Vector3.ToVector3D ()), but in any case, converting Vector3 to Vector3D is very trivial, and the code above should help :)
source share