private static double [ ] toVector ( Point3d src , Point3d dest ) { return new double [ ] { dest . x - src . x , dest . y - src . y , dest . z - src . z } ; }
Create a vector by specifying the source and destination coordinates .