Class: HexaPDF::Content::Operator::CurveToNoSecondControlPoint
- Inherits:
-
BaseOperator
- Object
- BaseOperator
- HexaPDF::Content::Operator::CurveToNoSecondControlPoint
- Defined in:
- lib/hexapdf/content/operator.rb
Overview
Implementation of the ‘y’ operators.
See: PDF2.0 s8.5.2.1
Instance Attribute Summary
Attributes inherited from BaseOperator
Instance Method Summary collapse
-
#initialize ⇒ CurveToNoSecondControlPoint
constructor
Creates the operator.
-
#serialize(serializer, x1, y1, x3, y3) ⇒ Object
:nodoc:.
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ CurveToNoSecondControlPoint
Creates the operator.
637 638 639 |
# File 'lib/hexapdf/content/operator.rb', line 637 def initialize super('y') end |
Instance Method Details
#serialize(serializer, x1, y1, x3, y3) ⇒ Object
:nodoc:
641 642 643 644 |
# File 'lib/hexapdf/content/operator.rb', line 641 def serialize(serializer, x1, y1, x3, y3) #:nodoc: "#{serializer.serialize_numeric(x1)} #{serializer.serialize_numeric(y1)} " \ "#{serializer.serialize_numeric(x3)} #{serializer.serialize_numeric(y3)} y\n" end |