Vector3Unproject method

  1. @override
Vector3D Vector3Unproject(
  1. Vector3D source,
  2. MatrixD projection,
  3. MatrixD view
)
override

Projects a Vector3 from screen space into object space

Implementation

@override
Vector3D Vector3Unproject(
  Vector3D source,
  MatrixD projection,
  MatrixD view,
) => $.Vector3$.Extract2(
  (p) => _ffi.Vector3Unproject(
    $.Vector3$.Ref1(source).asNativePointer<Vector3C>().ref,
    $.Matrix$.Ref1(projection).asNativePointer<MatrixC>().ref,
    $.Matrix$.Ref2(view).asNativePointer<MatrixC>().ref,
  ).toDart(p.asNativePointer()),
);