rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
68 lines (32 loc) • 1.18 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [Margin2d](./rc-js-util.margin2d.md) > [mat3TransformLength](./rc-js-util.margin2d.mat3transformlength.md)
## Margin2d.mat3TransformLength() method
Applies `Mat3.getTransformedXLength` `Mat3.getTransformedYLength` with a minimum of 0 and a maximum of whatever the margin is.
**Signature:**
```typescript
mat3TransformLength<TResult extends TTypedArray = TArray>(_mat: IReadonlyMat3<TTypedArray>, _writeTo?: Margin2d<TResult>): Margin2d<TResult>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
\_mat
</td><td>
[IReadonlyMat3](./rc-js-util.ireadonlymat3.md)<!-- --><[TTypedArray](./rc-js-util.ttypedarray.md)<!-- -->>
</td><td>
</td></tr>
<tr><td>
\_writeTo
</td><td>
[Margin2d](./rc-js-util.margin2d.md)<!-- --><TResult>
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
[Margin2d](./rc-js-util.margin2d.md)<!-- --><TResult>