class Google::Apis::VisionV1::Position
A 3D position in the image, used primarily for Face detection landmarks. A valid Position
must have both x and y coordinates. The position coordinates are in the same scale as the original image.
Attributes
x[RW]
X coordinate. Corresponds to the JSON property ‘x` @return [Float]
y[RW]
Y coordinate. Corresponds to the JSON property ‘y` @return [Float]
z[RW]
Z coordinate (or depth). Corresponds to the JSON property ‘z` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 1187 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/vision_v1/classes.rb, line 1192 def update!(**args) @y = args[:y] if args.key?(:y) @z = args[:z] if args.key?(:z) @x = args[:x] if args.key?(:x) end