mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
add documents of CvCircle32f
This commit is contained in:
parent
1b27e96cbb
commit
3a7dac9fbe
1 changed files with 15 additions and 6 deletions
|
@ -55,7 +55,9 @@ rb_allocate(VALUE klass)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return parameter on center.
|
* Returns center point of the circle
|
||||||
|
* @overload center
|
||||||
|
* @return [CvPoint2D32f] Center point of the circle
|
||||||
*/
|
*/
|
||||||
VALUE
|
VALUE
|
||||||
rb_center(VALUE self)
|
rb_center(VALUE self)
|
||||||
|
@ -64,7 +66,9 @@ rb_center(VALUE self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return parameter on radius.
|
* Returns radius of the circle
|
||||||
|
* @overload radius
|
||||||
|
* @return [Number] Radius of the circle
|
||||||
*/
|
*/
|
||||||
VALUE
|
VALUE
|
||||||
rb_radius(VALUE self)
|
rb_radius(VALUE self)
|
||||||
|
@ -73,10 +77,10 @@ rb_radius(VALUE self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* Accesses to parameters of the circle by array-like interface ([X-coordinate, Y-coordinate, radius])
|
||||||
* [<i>index</i>]
|
* @overload []
|
||||||
*
|
* @param index [Integer] Index
|
||||||
* Return value of <i>index</i> dimension.
|
* @return [Number] X-coordinate, Y-coordinate or radius of the circle
|
||||||
*/
|
*/
|
||||||
VALUE
|
VALUE
|
||||||
rb_aref(VALUE self, VALUE index)
|
rb_aref(VALUE self, VALUE index)
|
||||||
|
@ -98,6 +102,11 @@ rb_aref(VALUE self, VALUE index)
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns parameters of the circle as an array which contains [center<CvPoint2D32f>, radius<Number>]
|
||||||
|
* @overload to_ary
|
||||||
|
* @return [Array<CvPoint2D32f,Number>] An array which contains [center, radius]
|
||||||
|
*/
|
||||||
VALUE
|
VALUE
|
||||||
rb_to_ary(VALUE self)
|
rb_to_ary(VALUE self)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue