GetWorldToScreen2D method

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

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

Implementation

Vector2D GetWorldToScreen2D(
  Vector2D position,
  Camera2DD camera,
) => run(
  () => _debugLabels.GetWorldToScreen2D(position, camera),
  () => _flat.GetWorldToScreen2D(
    position,
    camera,
  ),
);