GetScreenToWorldRayEx method
Get a ray trace from screen position (i.e mouse) in a viewport
Implementation
@override
RayD GetScreenToWorldRayEx(
Vector2D position,
Camera3DD camera,
int width,
int height,
) => $.Ray$.Extract1(
(p) => _ffi.GetScreenToWorldRayEx(
$.Vector2$.Ref1(position).asNativePointer<Vector2C>().ref,
$.Camera3D$.Ref1(camera).asNativePointer<Camera3DC>().ref,
width,
height,
).toDart(p.asNativePointer()),
);