using System using System Collections Generic using System Linq using

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);
}
}
}