Class: HexaPDF::Content::Operator::CurveToNoSecondControlPoint

Inherits:
BaseOperator
  • Object
show all
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

#name

Instance Method Summary collapse

Methods inherited from BaseOperator

#invoke

Constructor Details

#initializeCurveToNoSecondControlPoint

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