Method AsReadOnlySpan
| Edit this page View SourceAsReadOnlySpan()
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.