Vetor3.Vector3(Vector3)
Creates Um novo Vector3 by copying another vector.
Method Signature
Vector3(Vector3 value)
Descrição
Copies all components from value into Um novo instance. Use this when you need a defensive copy before mutation.
Parameters
value(Vector3): source vector.
Retorna
Vector3: new instance with identical component values.
Mutability
- Does not modify the source vector.
Edge Cases
- If
valueis null, constructor behavior depends on runtime validation.
Usage Example
Vector3 original = new Vector3(3f, 4f, 5f);
Vector3 copy = new Vector3(original);
copy.lerp(new Vector3(0f, 0f, 0f), 0.5f);
Mathematical Example
Input (3, 4, 5) -> new instance (3, 4, 5).