GrapherApp.UI/Model/Vector3.cs
/// <summary>
///   <para>Projects a vector onto another vector.</para>
/// </summary>
/// <param name="vector"></param>
/// <param name="onNormal"></param>
Projects a vector onto another vector.
Projects a vector onto another vector .
public static Vector3 Project(Vector3 vector, Vector3 onNormal)
		{
			float num = Vector3.Dot(onNormal, onNormal);
			if (num < float.Epsilon)
			{
				return Vector3.zero;
			}
			return onNormal * Vector3.Dot(vector, onNormal) / num;
		}
public static Vector3 Project ( Vector3 vector , Vector3 onNormal ) { float num = Vector3 . Dot ( onNormal , onNormal ) ; if ( num < float . Epsilon ) { return Vector3 . zero ; } return onNormal * Vector3 . Dot ( vector , onNormal ) / num ; }
Projects a vector onto another vector.
Projects a vector onto another vector .
vector
Vector3
None
onNormal
Vector3
None