swh:1:snp:818279ffd0c3c25a68d33cc2b97d007e1bdc7ed6
Raw File
Tip revision: 8abaf41b7c113afafcca20c0b869826efb0c6e6b authored by ennetws on 15 January 2014, 06:15:06 UTC
Changes to filtering.
Tip revision: 8abaf41
SkeletonEdge.h
#pragma once
#include "global.h"

class SkeletonEdge {
public:
    SkeletonNode * n1;
    SkeletonNode * n2;

    int index;

    float length;

    SkeletonEdge(SkeletonNode * N1, SkeletonNode * N2, int newIndex) {
        this->n1 = N1;
        this->n2 = N2;

        this->index = newIndex;
    }

    inline float calculateLength() {
        length = n1->distanceTo(n2);
        return length;
    }
#if 0
    inline Vec direction() {
        return this->n2->v() - this->n1->v();
    }
#endif
};
back to top