Ignore:
Timestamp:
06/07/17 12:01:16 (7 years ago)
Author:
Maciej Komosinski
Message:
  • 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fF/fF_chamber3d.cpp

    r286 r667  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2017  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    77#include <iostream>
    88
    9 fF_chamber3d::fF_chamber3d(float centerX, float centerY, float centerZ,
    10         float radius, float holeX, float holeY, float holeZ,
    11         float vectorTfX, float vectorTfY, float vectorTfZ, float beta, float phi)
     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)
    1212{
    1313        points = NULL;
     
    1515        this->centerY = centerY;
    1616        this->centerZ = centerZ;
    17         this->radius = radius;
     17        this->radius_x = radius_x;
     18        this->radius_y = radius_y;
     19        this->radius_z = radius_z;
    1820        this->holeX = holeX;
    1921        this->holeY = holeY;
Note: See TracChangeset for help on using the changeset viewer.