GetScreenToWorldRayEx method

RayD GetScreenToWorldRayEx(
  1. Vector2D position,
  2. Camera3DD camera,
  3. num width,
  4. num height,
)

Get a ray trace from screen position (i.e mouse) in a viewport

Implementation

RayD GetScreenToWorldRayEx(
  Vector2D position,
  Camera3DD camera,
  num width,
  num height,
) => run(
  () => _debugLabels.GetScreenToWorldRayEx(position, camera, width, height),
  () => _flat.GetScreenToWorldRayEx(
    position,
    camera,
    width.toInt(),
    height.toInt(),
  ),
);