←to practical programming

Exercise "vector3d"

  1. Build a struct
    public struct vector3d{public double x,y,z;/*...*/}
    to work with 3-dimensional Euclidean vectors; implement the relevant methods and overload the relevant operators; override ToString method.
  2. Implement the members .x,.y,.z as properties.
  3. Implement interface ivector3d and implement dot- and vector-product via the interface.

Hints: