Augmented Images/src/Library/PackageCache/com.unity.progrids@3.0.3-preview.0/Editor/ProGridsEnums.cs
/// <summary>
/// Multiplies a Vector3 using the inverse value of an axis (eg, Axis.Y becomes Vector3(1, 0, 1) )
/// </summary>
/// <param name="v"></param>
/// <param name="axis"></param>
/// <returns></returns>
Multiplies a Vector3 using the inverse value of an axis  )
Multiplies a Vector3 using the inverse value of an axis )
internal static Vector3 InverseAxisMask(Vector3 v, Axis axis)
		{
			switch(axis)
			{
				case Axis.X:
				case Axis.NegX:
					return Vector3.Scale(v, new Vector3(0f, 1f, 1f));
				case Axis.Y:
				case Axis.NegY:
					return Vector3.Scale(v, new Vector3(1f, 0f, 1f));
				case Axis.Z:
				case Axis.NegZ:
					return Vector3.Scale(v, new Vector3(1f, 1f, 0f));
				default:
					return v;
			}
		}
internal static Vector3 InverseAxisMask ( Vector3 v , Axis axis ) { switch ( axis ) { case Axis . X : case Axis . NegX : return Vector3 . Scale ( v , new Vector3 ( 0f , 1f , 1f ) ) ; case Axis . Y : case Axis . NegY : return Vector3 . Scale ( v , new Vector3 ( 1f , 0f , 1f ) ) ; case Axis . Z : case Axis . NegZ : return Vector3 . Scale ( v , new Vector3 ( 1f , 1f , 0f ) ) ; default : return v ; } }
Multiplies a Vector3 using the inverse value of an axis (eg, Axis.Y becomes Vector3(1, 0, 1) )
Multiplies a Vector3 using the inverse value of an axis ( eg Axis . Y becomes Vector3 ( 1 0 1 ) )
None
v
Vector3
None
axis
Axis
None