Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/CinderFreenect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ void Kinect::setLedColor( LedColor ledColorCode )
freenect_set_led( mObj->mDevice, (freenect_led_options)code );
}

Vec3f Kinect::getAccel() const
vec3 Kinect::getAccel() const
{
Vec3d raw;
dvec3 raw;
freenect_update_tilt_state( mObj->mDevice );
freenect_get_mks_accel( freenect_get_tilt_state( mObj->mDevice ), &raw.x, &raw.y, &raw.z );
return Vec3f( raw );
return vec3( raw );
}

ImageSourceRef Kinect::getVideoImage()
Expand Down
4 changes: 2 additions & 2 deletions src/CinderFreenect.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Kinect {
//! Returns the height of the captured image in pixels.
int32_t getHeight() const { return 480; }
//! Returns the size of the captured image in pixels.
Vec2i getSize() const { return Vec2i( getWidth(), getHeight() ); }
vec2 getSize() const { return vec2( getWidth(), getHeight() ); }
//! Returns the aspect ratio of the capture imagee, which is its width / height
float getAspectRatio() const { return getWidth() / (float)getHeight(); }
//! Returns the bounding rectangle of the capture imagee, which is Area( 0, 0, width, height )
Expand All @@ -101,7 +101,7 @@ class Kinect {
void setLedColor( LedColor ledColorCode );

//! Returns the current accelerometer data, measured as meters/second<sup>2</sup>.
Vec3f getAccel() const;
vec3 getAccel() const;

ImageSourceRef getVideoImage();
ImageSourceRef getDepthImage();
Expand Down