MotorXP-PM Scripting API
    Preparing search index...

    Interface Point

    Two-dimensional point used by Segment, Arc and parts (QmlPoint). Unlike Point2, coordinates are read with the x() and y() methods.

    interface Point {
        setX(x: number): void;
        setY(y: number): void;
        toString(): string;
        x(): number;
        y(): number;
    }
    Index

    Methods

    Methods

    • Sets the X coordinate.

      Parameters

      • x: number

        X coordinate.

      Returns void

    • Sets the Y coordinate.

      Parameters

      • y: number

        Y coordinate.

      Returns void

    • String representation of the point.

      Returns string

    • X coordinate.

      Returns number

    • Y coordinate.

      Returns number