treeloom-matrix
    Preparing search index...

    Function getLayerPoints

    • Return just the points on one z-layer of the matrix - the same points getAllPoints would find, filtered down to a single layer. A convenience for the repeated getAllPoints(matrix).filter(p => p.z === z) pattern.

      Parameters

      • matrix: MatrixLevel

        The matrix (or any level of it) to retrieve points from.

      • z: number

        The layer to keep points from.

      Returns Point[]