void point::SetLen(int)
Questa scheda è disponibile in inglese e in spagnolo: qui sotto trovi il testo inglese.
SetLen · point
Firma esatta
Sezione intitolata “Firma esatta”void point::SetLen(int)Descrizione
Sezione intitolata “Descrizione”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.
Note d’uso
Sezione intitolata “Note d’uso”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.
Parametri e tipo restituito
Sezione intitolata “Parametri e tipo restituito”Tipo restituito: void
Il metodo si chiama su un oggetto. Il ricevente non viene ripetuto tra i parametri di questa firma.
| Posizione | Tipo |
|---|---|
| 1 | int |
Consultare e condividere
Sezione intitolata “Consultare e condividere”Conserva le note e i limiti quando riutilizzi questa descrizione. Non dedurre significati di parametri, unità o effetti non documentati.