source: cpp/frams/genetics/fF/fF_chamber3d.cpp @ 667

Last change on this file since 667 was 667, checked in by Maciej Komosinski, 5 years ago
  • fF foraminifera encoding supports scaling (radius) of the initial chamber (three new parameters added: radii for x,y,z)
  • mutation ignores these three parameters
  • float -> double for consistency everywhere
  • Property svn:eol-style set to native
File size: 917 bytes
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2017  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5#include "fF_chamber3d.h"
6#include "conv_fF.h"
7#include <iostream>
8
9fF_chamber3d::fF_chamber3d(double centerX, double centerY, double centerZ,
10        double radius_x, double radius_y, double radius_z, double holeX, double holeY, double holeZ,
11        double vectorTfX, double vectorTfY, double vectorTfZ, double beta, double phi)
12{
13        points = NULL;
14        this->centerX = centerX;
15        this->centerY = centerY;
16        this->centerZ = centerZ;
17        this->radius_x = radius_x;
18        this->radius_y = radius_y;
19        this->radius_z = radius_z;
20        this->holeX = holeX;
21        this->holeY = holeY;
22        this->holeZ = holeZ;
23        this->vectorTfX = vectorTfX;
24        this->vectorTfY = vectorTfY;
25        this->vectorTfZ = vectorTfZ;
26        this->beta = beta;
27        this->phi = phi;
28}
29
30fF_chamber3d::~fF_chamber3d()
31{
32        delete[] points;
33}
Note: See TracBrowser for help on using the repository browser.