class Google::Apis::VectortileV1::Vertex2DList

2D vertex list used for lines and areas. Each entry represents an offset from the previous one in local tile coordinates. The first entry is offset from (0, 0). For example, the list of vertices [(1,1), (2, 2), (1, 2)] would be encoded in vertex offsets as [(1, 1), (1, 1), (-1, 0)].

Attributes

x_offsets[RW]

List of x-offsets in local tile coordinates. Corresponds to the JSON property `xOffsets` @return [Array<Fixnum>]

y_offsets[RW]

List of y-offsets in local tile coordinates. Corresponds to the JSON property `yOffsets` @return [Array<Fixnum>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vectortile_v1/classes.rb, line 816
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vectortile_v1/classes.rb, line 821
def update!(**args)
  @x_offsets = args[:x_offsets] if args.key?(:x_offsets)
  @y_offsets = args[:y_offsets] if args.key?(:y_offsets)
end