RaylibView.toRaylib

Convert position of a point or rectangle in Fluid space to Raylib space.

  1. Vector2 toRaylib(Vector2 position)
    class RaylibView(RaylibViewVersion raylibVersion)
    const nothrow
    toRaylib
  2. Rectangle toRaylib(Rectangle rectangle)

Parameters

position Vector2

Fluid position, where each coordinate is specified in pixels (1/96th of an inch).

Return Value

Type: Vector2

Raylib position or rectangle, where each coordinate is specified in screen dots.

Meta