Написал 6е задание на вычислительную геометрию, задача наименьшего круга по алгоритму Велзля
This commit is contained in:
parent
6e9934a2d8
commit
b36187b77d
18 changed files with 264 additions and 1 deletions
21
ComputationalGeometry/6Ex/SCP.h
Normal file
21
ComputationalGeometry/6Ex/SCP.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef SCP
|
||||
#define SCP
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include "types.h"
|
||||
|
||||
#define exp 1.e-6
|
||||
|
||||
circle MEC(point * I, int ilen, point * N, int nlen);
|
||||
bool belongs(circle crcl, point p);
|
||||
double powd(double number);
|
||||
circle primitive(point * N, int nlen);
|
||||
circle centermass(point p1, point p2);
|
||||
circle byThreePoints(point * warp);
|
||||
double straightAngle(point p1, point p2);
|
||||
double distance(point p1, point p2);
|
||||
void printCircle(circle crcl);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue