kigadgets.point =============== .. py:module:: kigadgets.point Classes ------- .. autoapisummary:: kigadgets.point.Point Module Contents --------------- .. py:class:: Point(x: float, y: float) Bases: :py:obj:`kigadgets.units.BaseUnitTuple` .. autoapi-inheritance-diagram:: kigadgets.point.Point :parts: 1 .. py:method:: build_from(t: kigadgets.units.CoordinateLike) -> Point :staticmethod: Return a point object from a tuple. It can transparently receive either a Point or a tuple, and a Point object will always be returned. .. py:method:: native_from(t: kigadgets.units.CoordinateLike) -> Any :staticmethod: Return a native C++/old API object from a tuple/Point. Generally not to be used, but provided for compatibility when migrating from old API code. .. py:property:: native_obj :type: Any Returns the native wxPoint object Point is wrapping. .. py:method:: rotate(angle: float, around: kigadgets.units.CoordinateLike = (0, 0)) -> None Rotate the point. :param angle: rotation angle in degrees. :param around: rotation center. .. py:method:: rotated(angle: float, around: kigadgets.units.CoordinateLike = (0, 0)) -> Point Generate a new Point. :param angle: rotation angle in degrees. :param around: rotation center. :returns: Point