Exemple #1
0
 public static V3 Project(V3 a, V3 b)
 {
     return(a.normalized * (a.Dot(b) / a.magnitude));
 }
	public static V3 Ortho(V3 a, V3 b) {
		return a * (a.Dot(b) / a.Dot(a));
	}
Exemple #3
0
 public static V3 Ortho(V3 a, V3 b)
 {
     return(a * (a.Dot(b) / a.Dot(a)));
 }
	public static V3 Project(V3 a, V3 b) {
		return a.normalized * (a.Dot(b) / a.magnitude);
	}