blob: 2eff7144c2d207757bfc04557f4fd772afe63d8c (
plain)
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
37
|
// Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
#ifndef ANILLO_H_INCLUDED
#define ANILLO_H_INCLUDED
#include <iostream>
#include <stdlib.h>
#include "pto3D.h"
#include "MoleculaT.h"
#include "String.h"
// http://groups.google.com/group/alt.sources/msg/b92b1a812b1cf4c1?dmode=source
class anillo
{
public:
int num;
int *vert;
pto3D centroide;
anillo () {
num = 0;
centroide = INVALID_PTO3D;
vert = new int[15];
}
void addVert (int pton);
void setCentro (pto3D cide);
void centracentroide (MoleculaT mol);
void ordena (pto3D vecref, MoleculaT mol);
void ordenaccw (int ini, MoleculaT mol);
void ordenacw (int ini, MoleculaT mol);
void rota (int giro);
std::ostream& operator<< (const anillo&);
};
#endif
|