// This file is a part of the Framsticks GDK. // Copyright (C) 2002-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. // Refer to http://www.framsticks.com/ for further information. #include "fF_chamber3d.h" #include "conv_fF.h" #include fF_chamber3d::~fF_chamber3d() { for (int i = 0; i < fF_SIZE; i++) delete[] points[i]; delete[] points; } fF_chamber3d::fF_chamber3d(float centerX, float centerY, float centerZ, float radius, float holeX, float holeY, float holeZ, float vectorTfX, float vectorTfY, float vectorTfZ, float beta, float phi) { points = NULL; this->centerX = centerX; this->centerY = centerY; this->centerZ = centerZ; this->radius = radius; this->holeX = holeX; this->holeY = holeY; this->holeZ = holeZ; this->vectorTfX = vectorTfX; this->vectorTfY = vectorTfY; this->vectorTfZ = vectorTfZ; this->beta = beta; this->phi = phi; }