using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MMCG_lab_8_9 { public class Point3D { public double X { get; set; } public double Y { get; set; } public double Z { get; set; } public Point3D(double x, double y, double z) { X = x; Y = y; Z = z; } public Point3D() { X = 0; Y = 0; Z = 0; } public double scal(Point3D b) { return this.X * b.X + this.Y * b.Y + this.Z * b.Z; } public Point3D vect(Point3D vect) { return new Point3D(Y * vect.Z - Z * vect.Y, Z * vect.X - X * vect.Z, X * vect.Y - Y * vect.X); } } }