( begin auto-generated from PVector_mult.xml ) Multiplies a vector by a scalar or multiplies one vector by another. ( end auto-generated ) @webref pvector:method @usage web_application @brief Multiply a vector by a scalar @param n the number to multiply with the vector
(float n)
| 591 | * @param n the number to multiply with the vector |
| 592 | */ |
| 593 | public PVector mult(float n) { |
| 594 | x *= n; |
| 595 | y *= n; |
| 596 | z *= n; |
| 597 | return this; |
| 598 | } |
| 599 | |
| 600 | |
| 601 | /** |