using UnityEngine; namespace UnityAtoms.BaseAtoms { /// /// Variable of type `Vector3`. Inherits from `EquatableAtomVariable<Vector3, Vector3Pair, Vector3Event, Vector3PairEvent, Vector3Vector3Function>`. /// [EditorIcon("atom-icon-lush")] [CreateAssetMenu(menuName = "Unity Atoms/Variables/Vector3", fileName = "Vector3Variable")] public sealed class Vector3Variable : EquatableAtomVariable { /// /// Multiply variable by value. /// /// Value to multiple by. public void MultiplyBy(float value) => Value *= value; /// /// Multiply variable by Variable value. /// /// Variable with value to multiple by. public void MultiplyBy(AtomBaseVariable variable) => MultiplyBy(variable.Value); /// /// Divide Variable by value. /// /// Value to divide by. public void DivideBy(float value) => Value /= value; /// /// Divide Variable by Variable value. /// /// Variable value to divide by. public void DivideBy(AtomBaseVariable variable) => DivideBy(variable.Value); } }