Добавьте файлы проекта.

This commit is contained in:
palex
2026-01-06 02:07:18 +03:00
parent 153b9675e3
commit 8e4b375e80
109 changed files with 10817 additions and 0 deletions

37
Geometry/Line3d.cs Normal file
View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Geo
{
[Serializable]
public class Line3d
{
Point3d startPoint;
Point3d endPoint;
public Point3d StartPoint { get => startPoint; set { startPoint = value; Directive = endPoint - startPoint; } }
public Point3d EndPoint { get => endPoint; set { endPoint = value; Directive = endPoint - startPoint; } }
public Vector3d Directive { get; private set; }
public double Length { get => Directive.Norma; }
public Line3d()
{
}
public Line3d(Point2d startPt, Point2d endPt)
{
startPoint = startPt.ToPoint3d(); endPoint = endPt.ToPoint3d();
Directive = endPoint - startPoint; ;
}
public Line3d(Point3d startPt, Point3d endPt)
{
startPoint = startPt; endPoint = endPt;
Directive = endPoint - startPoint; ;
}
}
}