Class: HexaPDF::Content::Operator::CurveToNoFirstControlPoint

Inherits:
BaseOperator
  • Object
show all
Defined in:
lib/hexapdf/content/operator.rb

Overview

Implementation of the ā€˜vā€™ 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

#initializeCurveToNoFirstControlPoint

Creates the operator.



620
621
622
# File 'lib/hexapdf/content/operator.rb', line 620

def initialize
  super('v')
end

Instance Method Details

#serialize(serializer, x2, y2, x3, y3) ⇒ Object

:nodoc:



624
625
626
627
# File 'lib/hexapdf/content/operator.rb', line 624

def serialize(serializer, x2, y2, x3, y3) #:nodoc:
  "#{serializer.serialize_numeric(x2)} #{serializer.serialize_numeric(y2)} " \
    "#{serializer.serialize_numeric(x3)} #{serializer.serialize_numeric(y3)} v\n"
end