Class: Bezier::CurvePoint

Inherits:
ControlPoint show all
Defined in:
lib/beziercurve.rb

Instance Attribute Summary

Attributes inherited from ControlPoint

#x, #y

Instance Method Summary collapse

Methods inherited from ControlPoint

#+, #-, #initialize, #inspect, #movepoint, #to_a, #to_curvepoint

Constructor Details

This class inherits a constructor from Bezier::ControlPoint

Instance Method Details

#to_controlpointControlPoint

Returns point coordinates on the Bézier curve.

Returns:

  • (ControlPoint)

    point coordinates on the Bézier curve.


49
50
51
# File 'lib/beziercurve.rb', line 49

def to_controlpoint
	ControlPoint.new(self.x, self.y)
end