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
124 125 126 |
# File 'lib/leap_motion.rb', line 124 def [] idx to_a.fetch(idx, 0.0) end |
#to_a ⇒ Object
120 121 122 |
# File 'lib/leap_motion.rb', line 120 def to_a [x, y, z] end |