void point::SetLen(int)
SetLen · point
Exact signature
Section titled “Exact signature”void point::SetLen(int)Description
Section titled “Description”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.
Usage notes
Section titled “Usage notes”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.
Parameters and return type
Section titled “Parameters and return type”Return type: void
The member is called on an object. Its receiver is not repeated among this signature’s arguments.
| Position | Type |
|---|---|
| 1 | int |
Read and share
Section titled “Read and share”Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.