FPoint.this - multiple declarations

Function FPoint.this

Constructs a dsdl2.FPoint from a vanilla SDL_FPoint from bindbc-sdl

ref this (
  sdl.rect.SDL_FPoint sdlFPoint
) @safe;

Parameters

NameDescription
sdlFPoint the dsdl2.FPoint struct

Function FPoint.this

Constructs a dsdl2.FPoint by feeding in an x and y pair

ref this (
  float x,
  float y
) @safe;

Parameters

NameDescription
x x coordinate point
y y coordinate point

Function FPoint.this

Constructs a dsdl2.FPoint by feeding in an array of x and y

ref this (
  float[2] xy
) @safe;

Parameters

NameDescription
xy x and y coordinate point array

Function FPoint.this

Constructs a dsdl2.FPoint from a dsdl2.Point

ref this (
  Point point
) @safe;

Parameters

NameDescription
point dsdl2.Point whose attributes are to be copied