SerenityJS
    Preparing search index...

    A 3D vector with floating point precision.

    Hierarchy

    • DataType
      • Vector3f

    Implements

    Index

    Constructors

    Properties

    x: number

    The x coordinate of the vector.

    y: number

    The y coordinate of the vector.

    z: number

    The z coordinate of the vector.

    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.