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.

54 lines (26 loc) 788 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; [Vec2](./rc-js-util.vec2.md) &gt; [getNormal](./rc-js-util.vec2.getnormal.md) ## Vec2.getNormal() method Returns the normal to this vector. **Signature:** ```typescript getNormal<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;