ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Method AsReadOnlySpan

    | Edit this page View Source

    AsReadOnlySpan()

    Returns the vertices as a ReadOnlySpan<T> for efficient access without allocations.

    Declaration
    public ReadOnlySpan<Vector3> AsReadOnlySpan()
    Returns
    Type Description
    ReadOnlySpan<Vector3>

    Read-only span of vertices

    Remarks

    This method does not allocate and provides a lightweight view of the vertices. It is recommended for performance-sensitive code that needs to iterate over the vertices.