GetWorldToScreenEx method

  1. @override
Vector2D GetWorldToScreenEx(
  1. Vector3D position,
  2. Camera3DD camera,
  3. int width,
  4. int height,
)
override

Get size position for a 3d world space position

Implementation

@override
Vector2D GetWorldToScreenEx(
  Vector3D position,
  Camera3DD camera,
  int width,
  int height,
) => $.Vector2$.Extract1(
  (p) => _ffi.GetWorldToScreenEx(
    $.Vector3$.Ref1(position).asNativePointer<Vector3C>().ref,
    $.Camera3D$.Ref1(camera).asNativePointer<Camera3DC>().ref,
    width,
    height,
  ).toDart(p.asNativePointer()),
);