GetWorldToScreen2D method

  1. @override
Vector2D GetWorldToScreen2D(
  1. Vector2D position,
  2. Camera2DD camera
)
override

Get the screen space position for a 2d camera world space position

Implementation

@override
Vector2D GetWorldToScreen2D(
  Vector2D position,
  Camera2DD camera,
) => $.Vector2$.Extract2(
  (p) => _ffi.GetWorldToScreen2D(
    $.Vector2$.Ref1(position).asNativePointer<Vector2C>().ref,
    $.Camera2D$.Ref1(camera).asNativePointer<Camera2DC>().ref,
  ).toDart(p.asNativePointer()),
);