class Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Vertex
A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
Attributes
x[RW]
X coordinate. Corresponds to the JSON property `x` @return [Fixnum]
y[RW]
Y coordinate (starts from the top of the image). Corresponds to the JSON property `y` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/documentai_v1/classes.rb, line 6321 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/documentai_v1/classes.rb, line 6326 def update!(**args) @x = args[:x] if args.key?(:x) @y = args[:y] if args.key?(:y) end