}// end scalarProduct /// <summary> /// vector product between this and w, assuminig both in the x-y plane, i.e. z==0. /// </summary> /// <param name="w">the second factor; the first factor is "this"; the result will have the form (0,0,k) with k in R.</param> /// <returns></returns> public PointR3 vectorProduct(PointR2 w) { PointR3 v_inR3 = new PointR3(this.x, this.y, 0); PointR3 w_inR3 = new PointR3(w.x, w.y, 0); PointR3 external_inR3 = v_inR3.vectorProduct(w_inR3); //ready return(external_inR3); } // end vectorProduct()
}// getCoordinates /// <summary> /// scalar product between this and w. /// </summary> /// <param name="w">the second factor; the first factor is "this"</param> /// <returns></returns> public double scalarProduct(PointR2 w) { PointR3 v_inR3 = new PointR3(this.x, this.y, 0); PointR3 w_inR3 = new PointR3(w.x, w.y, 0); double scalar_inR3 = v_inR3.scalarProduct(w_inR3); // ready. return(scalar_inR3); }// end scalarProduct