Class: Gegl::Curve
- Inherits:
-
Object
- Object
- Gegl::Curve
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_point(x, y) ⇒ Integer
Add a point to the curve at x y (replacing the value exactly for x if it already exists..
-
#calc_value(x) ⇒ Float
Retrieve the number of points in the curve.
-
#calc_values(x_min, x_max, num_samples, xs, ys) ⇒ nil
Compute a set (lookup table) of coordinates.
-
#duplicate ⇒ Gegl::Curve
Create a copy of curve.
-
#get_point(index, x, y) ⇒ nil
Retrive the coordinates for an index.
-
#get_y_bounds(min_y, max_y) ⇒ nil
Get the bounds on the values of the curve and store the values in the return locaitons provided in min_y and max_y.
-
#initialize ⇒ Gegl::Curve
constructor
Create a default Gegl::Curve with an identify mapping of (0.0..1.0) -> (0.0..1.0).
-
#num_points ⇒ Integer
Retrieve the number of points in the curve.
-
#set_point(index, x, y) ⇒ nil
Replace an existing point in a curve.
Constructor Details
#initialize ⇒ Gegl::Curve
Create a default Gegl::Curve with an identify mapping of (0.0..1.0) -> (0.0..1.0).
Returns the newly created default Gegl::Curve.
Instance Method Details
#add_point(x, y) ⇒ Integer
Add a point to the curve at x y (replacing the value exactly for x if it already exists.
#calc_value(x) ⇒ Float
Retrieve the number of points in the curve.
Returns the number of points for the coordinates in the curve.
#calc_values(x_min, x_max, num_samples, xs, ys) ⇒ nil
Compute a set (lookup table) of coordinates.
#duplicate ⇒ Gegl::Curve
Create a copy of curve.
#get_point(index, x, y) ⇒ nil
Retrive the coordinates for an index.
#get_y_bounds(min_y, max_y) ⇒ nil
Get the bounds on the values of the curve and store the values in the return locaitons provided in min_y and max_y.
#num_points ⇒ Integer
Retrieve the number of points in the curve.
Returns the number of points for the coordinates in the curve.
#set_point(index, x, y) ⇒ nil
Replace an existing point in a curve.