Salta ai contenuti

void point::SetLen(int)

Questa scheda è disponibile in inglese e in spagnolo: qui sotto trovi il testo inglese.

SetLen · point

Famiglia: point

void point::SetLen(int)

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.

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

Conserva le note e i limiti quando riutilizzi questa descrizione. Non dedurre significati di parametri, unità o effetti non documentati.

Suggest a better description

Write how you would explain this entry. Your proposal will be held in a private inbox for review.

Controller: José Luis de la Torre Reyes. Proposals are processed to review documentation improvements on the basis of legitimate interests. You can request access, correction, erasure or object by writing to seluedita@gmail.com. Opening this form uses a first-party security cookie for one hour. Submitting stores the proposal and an IP-derived security identifier in the private inbox; omitting your name does not make the submission technically anonymous. Privacy information · Cookies and browser storage.

0 / 4000

Proposals are not published automatically. Do not include personal information in your description.