Vetor3.multiply()
Método de instância em Vector3.
Descrição
- Multiplies this Vector3 by the specified Vector3 and Retorna Um novo Vector3. |
- Multiplies this Vector3 by the specified X, Y and Z values and Retorna Um novo Vector3. |
- Multiplies this Vector3 by the specified value and Retorna Um novo Vector3. |
Method Signature
multiply(Vector3)
multiply(float, float, float)
multiply(float)
Mathematical Definition
\mathbf{r}=\mathbf{a}\odot\mathbf{b}
Parameters
Vector3: 3D vector input.float: scalar numeric input.
Retorna
Vector3: returned by overloads of this method.
Mutability
- Does not modify o atual vector unless explicitly using a
Local/Equalvariant.
Edge Cases
- Zero vectors can produce degenerate outputs for geometric methods.
NaNandInfinityinputs propagate according to IEEE-754 floating-point behavior.- Repeated operations may accumulate floating-point precision error.
Usage Example
Vector3 a = new Vector3(10f, 2f, -5f);
Vector3 b = new Vector3(1f, 0.5f, 3f);
Vector3 result = a.multiply(b);
Mathematical Example
Example input/output depends on overload; for vector arithmetic operations this is typically computed per-component.