Beispiel #1
0
		public static Vector3D Normalized(Vector3D a) {
			return a*(1/a.Length());
		}
Beispiel #2
0
		public static double Project(Vector3D a,Vector3D b){
			b=Normalized(b);
			return Dot(a,b);
		}
Beispiel #3
0
		public static double Dot(Vector3D a, Vector3D b) {
			return a.x*b.x+a.y*b.y+a.z*b.z;
		}