Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Interface GridMeasurePathResultSegment

    interface GridMeasurePathResultSegment {
        cost: number;
        diagonals: number;
        distance: number;
        euclidean: number;
        from: GridMeasurePathResultWaypoint;
        spaces: number;
        to: GridMeasurePathResultWaypoint;
    }
    Index

    Properties

    cost: number

    The cost of the direct path (foundry.grid.BaseGrid#getDirectPath) between the two waypoints.

    diagonals: number

    The number of diagonals moved along this segment.

    distance: number

    The distance travelled in grid units along this segment.

    euclidean: number

    The Euclidean length of the straight line segment between the two waypoints.

    The waypoint that this segment starts from.

    spaces: number

    The number of spaces moved along this segment.

    The waypoint that this segment goes to.