
com.barrybecker4.simulation.snake.data.SnakeData.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bb4-snake Show documentation
Show all versions of bb4-snake Show documentation
bb4-simulations java code.
The newest version!
// Copyright by Barry G. Becker, 2016-2017. Licensed under MIT License: http://www.opensource.org/licenses/MIT
package com.barrybecker4.simulation.snake.data
/**
* Snake data is defined by the width of the transverse cross-sectional edges (of which there are num segments+1).
* The magnitude of each segment is the same as its longer width.
* @author Barry Becker
*/
case class SnakeData(numSegments: Int, segmentLength: Int, widths: Array[Double])
© 2015 - 2025 Weber Informatics LLC | Privacy Policy