class Crocket::Track
- Crocket::Track
- Reference
- Object
Defined in:
crocket/track.crConstructors
-
.new(sync_track : Pointer(Rocket::SyncTrack))
Creates a new instance of
Crocket::Track
.
Instance Method Summary
-
#[](row : Float) : Float
Alias for
#get_val
-
#get_val(row : Float) : Float
Returns the value at row
-
#name
Returns the name of this track
-
#to_unsafe : Pointer(Crocket::Rocket::SyncTrack)
#to_unsafe
returns the raw C pointer to this Rocketsync_track
struct.
Constructor Detail
def self.new(sync_track : Pointer(Rocket::SyncTrack))
#
Creates a new instance of Crocket::Track
.
This should not be called manually.
Instance Method Detail
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)