edges function
The edges of each shard as half-planes in its own frame: unit normal out and offset.
import { edges } from '@dioramajs/text/shatter'function edges(
c: Cut,
rows: number,
out?: Float32Array<ArrayBuffer>,
): Float32Array<ArrayBuffer>Parameters
| Name | Type | Description |
|---|---|---|
c | Cut | |
rows | number | |
out? | Float32Array<ArrayBuffer> | Default |
Defined in packages/text/src/shatter.ts.