class Crocket::Track

Defined in:

crocket/track.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(sync_track : Pointer(Rocket::SyncTrack)) #

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


[View source]

Instance Method Detail

def [](row : Float) : Float #

Alias for #get_val


[View source]
def get_val(row : Float) : Float #

Returns the value at row


[View source]
def name #

Returns the name of this track


[View source]
def to_unsafe : Pointer(Crocket::Rocket::SyncTrack) #

#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)

[View source]