Class: LeapMotion::Vector
- Inherits:
-
Object
- Object
- LeapMotion::Vector
- Defined in:
- lib/leap_motion.rb,
ext/leap_motion/vector.cpp
Constant Summary collapse
- UP =
new 0, 1, 0
- DOWN =
new 0, -1, 0
- FORWARD =
new 0, 0, -1
- BACKWARD =
new 0, 0, 1
- LEFT =
new(-1, 0, 0)
- RIGHT =
new 1, 0, 0
- X_AXIS =
new 1, 0, 0
- Y_AXIS =
new 0, 1, 0
- Z_AXIS =
new 0, 0, 1
- ZERO =
new 0, 0, 0
Instance Method Summary collapse
Instance Method Details
#[](idx) ⇒ Object
125 126 127 |
# File 'lib/leap_motion.rb', line 125 def [] idx to_a.fetch(idx, 0.0) end |
#to_a ⇒ Object
121 122 123 |
# File 'lib/leap_motion.rb', line 121 def to_a [x, y, z] end |