class

Crocket::Track

Inherits Reference < Object

Constructors

new(sync_track : Pointer(Rocket::SyncTrack))

Creates a new instance of Crocket::Track. This should not be called manually.

Source

Instance methods

[](row : Float) : Float

Alias for #get_val

Source
get_val(row : Float) : Float

Returns the value at row

Source
name

Returns the name of this track

Source
to_unsafe

to_unsafe returns the raw C pointer to this Rocket sync_track struct.

Useful for when you need to call the library functions directly.

For example:

device = Crocket::SyncDevice.new("sync")
track = device["camera:rot.y"]
p Crocket::Rocket.sync_find_key(track, 0)
Source