{"size": 393, "ext": "js", "max_stars_repo_path": "src/modules/modifier/Exponent.js", "max_stars_repo_name": "grind086/js-noise", "max_stars_repo_stars_event_min_datetime": "2017-03-19T22:39:09.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-16T03:45:21.000Z", "max_issues_repo_path": "src/modules/modifier/Exponent.js", "max_issues_repo_name": "grind086/js-noise", "max_issues_repo_issues_event_min_datetime": "2016-12-31T07:26:46.000Z", "max_issues_repo_issues_event_max_datetime": "2016-12-31T07:30:44.000Z", "max_forks_repo_path": "src/modules/modifier/Exponent.js", "max_forks_repo_name": "grind086/js-noise", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 8, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 18.7142857143, "max_line_length": 80, "alphanum_fraction": 0.5597964377}
'use strict';

var Module = require('../Module');

class Exponent extends Module {
    constructor() {
        super();
        
        this.exponent = 1;
    }
    
    get type() { return 'Exponent'; }
    get sourceModuleCount() { return 1; }
    
    getValue(x, y, z) {
        return Math.pow(this.sourceModules[0].getValue(x, y, z), this.exponent);
    }
}

module.exports = Exponent;
