class Simulator

Defined in:

simulator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(count, mass, natural_length, spring_constant, timestep : Float64 = 0.001) #

[View source]

Instance Method Detail

def angular_momentum #

[View source]
def angular_vel #

[View source]
def count : Int32 #

[View source]
def frequency : Float64 #

[View source]
def frequency=(frequency : Float64) #

[View source]
def grav : Float64 #

[View source]
def grav=(grav : Float64) #

[View source]
def log : StaticArray(State, 2) #

[View source]
def mass : Float64 #

[View source]
def rest_length : Float64 #

[View source]
def rest_length=(rest_length : Float64) #

[View source]
def spring_constant : Float64 #

[View source]
def start_state(angle = 0_f64) #

[View source]
def state #

[View source]
def step #

[View source]
def time : Float64 #

[View source]
def timestep : Float64 #

[View source]