{
  "name": "PointF",
  "header": "nativeui/gfx/geometry/point_f.h",
  "type": "class",
  "namespace": "nu",
  "description": "A point with x and y coordinate.",
  "constructors": [
    {
      "signature": {
        "name": "PointF",
        "parameters": [],
        "shortStr": "PointF()",
        "str": "PointF()"
      },
      "description": "Create an empty point.",
      "id": "pointf"
    },
    {
      "signature": {
        "name": "PointF",
        "parameters": [
          {
            "type": {
              "name": "float"
            },
            "name": "x"
          },
          {
            "type": {
              "name": "float"
            },
            "name": "y"
          }
        ],
        "shortStr": "PointF(x, y)",
        "str": "PointF(float x, float y)"
      },
      "description": "Create a point with coordinates of `x` and `y`.",
      "id": "pointf-x-y"
    }
  ],
  "methods": [
    {
      "signature": {
        "returnType": {
          "name": "float"
        },
        "name": "x",
        "parameters": [],
        "shortStr": "x()",
        "str": "float x() const"
      },
      "description": "Return X coordinate.",
      "id": "x"
    },
    {
      "signature": {
        "name": "set_x",
        "parameters": [
          {
            "type": {
              "name": "float"
            },
            "name": "x"
          }
        ],
        "shortStr": "set_x(x)",
        "str": "void set_x(float x)"
      },
      "description": "Set X coordinate.",
      "id": "setx-x"
    },
    {
      "signature": {
        "returnType": {
          "name": "float"
        },
        "name": "y",
        "parameters": [],
        "shortStr": "y()",
        "str": "float y() const"
      },
      "description": "Return Y coordinate.",
      "id": "y"
    },
    {
      "signature": {
        "name": "set_y",
        "parameters": [
          {
            "type": {
              "name": "float"
            },
            "name": "y"
          }
        ],
        "shortStr": "set_y(y)",
        "str": "void set_y(float y)"
      },
      "description": "Set Y coordinate.",
      "id": "sety-y"
    },
    {
      "signature": {
        "returnType": {
          "name": "bool"
        },
        "name": "IsOrigin",
        "parameters": [],
        "shortStr": "IsOrigin()",
        "str": "bool IsOrigin() const"
      },
      "description": "Return whether the point is empty.",
      "id": "isorigin"
    },
    {
      "signature": {
        "returnType": {
          "name": "Vector2dF",
          "id": "vector2df"
        },
        "name": "OffsetFromOrigin",
        "parameters": [],
        "shortStr": "OffsetFromOrigin()",
        "str": "Vector2dF OffsetFromOrigin() const"
      },
      "description": "Return the `Vector2dF` version of the point.",
      "id": "offsetfromorigin"
    },
    {
      "signature": {
        "name": "Scale",
        "parameters": [
          {
            "type": {
              "name": "float"
            },
            "name": "scale"
          }
        ],
        "shortStr": "Scale(scale)",
        "str": "void Scale(float scale)"
      },
      "description": "Scale the x and y coordinates by `scale|`.",
      "id": "scale-scale"
    },
    {
      "signature": {
        "returnType": {
          "name": "std::string"
        },
        "name": "ToString",
        "parameters": [],
        "shortStr": "ToString()",
        "str": "std::string ToString() const"
      },
      "description": "Return string representation of the point.",
      "id": "tostring"
    }
  ],
  "id": "pointf"
}