SetLen
Rescales the point's integer coordinates toward the requested vector length, modifying the point in place. Integer arithmetic and truncation can make the resulting length differ from the requested value.
The argument is the requested length. On the documented calculation path, each coordinate is multiplied by that value and divided with truncation toward zero. Products use 32-bit arithmetic. Behavior with a zero computed divisor, invalid references, or values that cause overflow is not fully documented.
Signature
Parameters and return
Receiver: point · Return: void
| Position | Type |
|---|---|
| 1 | int |
Other overloads
No other overloads with this name in the published catalog.