sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    x y

    Methods

    Constructors

    • Class for representing coordinates and positions.

      Parameters

      • x: number

        Left.

      • y: number

        Top.

      Returns Coordinate__Class

    Properties

    x: number

    X-value

    y: number

    Y-value

    Methods

    • Creates a new copy of this coordinate.

      Returns Blockly.utils.Coordinate

      A copy of this coordinate.

    • Scales this coordinate by the given scale factor.

      Parameters

      • s: number

        The scale factor to use for both x and y dimensions.

      Returns Blockly.utils.Coordinate

      This coordinate after scaling.

    • Translates this coordinate by the given offsets. respectively.

      Parameters

      • tx: number

        The value to translate x by.

      • ty: number

        The value to translate y by.

      Returns Blockly.utils.Coordinate

      This coordinate after translating.