GetWorldToScreen method

  1. @override
Vector2D GetWorldToScreen(
  1. Vector3D position,
  2. Camera3DD camera
)
override

Get the screen space position for a 3d world space position

Implementation

@override
Vector2D GetWorldToScreen(
  Vector3D position,
  Camera3DD camera,
) => $.Vector2$.Extract1(
  (p) => _ffi.GetWorldToScreen(
    $.Vector3$.Ref1(position).asNativePointer<Vector3C>().ref,
    $.Camera3D$.Ref1(camera).asNativePointer<Camera3DC>().ref,
  ).toDart(p.asNativePointer()),
);