SerenityJS
    Preparing search index...

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    x: number
    y: number
    z: number

    Methods

    • Gets the Manhattan distance between this 3D vector and another 3D vector. The Manhattan distance is the sum of the absolute differences of their coordinates.

      Parameters

      • other: IPosition

        The other 3D vector to get the distance to.

      Returns number

      The Manhattan distance between the 3D vectors.