UNPKG

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.

52 lines (25 loc) 762 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [Range2d](./rc-js-util.range2d.md) &gt; [getCenter](./rc-js-util.range2d.getcenter.md) ## Range2d.getCenter() method **Signature:** ```typescript getCenter<TResult extends TTypedArray = TArray>(_result?: Vec2<TResult>): Vec2<TResult>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> \_result </td><td> [Vec2](./rc-js-util.vec2.md)<!-- -->&lt;TResult&gt; </td><td> _(Optional)_ </td></tr> </tbody></table> **Returns:** [Vec2](./rc-js-util.vec2.md)<!-- -->&lt;TResult&gt;