An Editor-only static extension class adding a component-wise multiply for Sandbox.Vector3, returning a new Vector3 with each component multiplied.
#nullable enable
using Sandbox;
namespace BlenderActions;
/// <summary>Provides component-wise vector helpers used by transform operations.</summary>
internal static class Vector3Extensions
{
/// <summary>Returns the component-wise product of two vectors.</summary>
public static Vector3 MultiplyComponents(this Vector3 left, Vector3 right)
{
return new Vector3(
left.x * right.x,
left.y * right.y,
left.z * right.z);
}
}