class Google::Apis::PolyV1::Quaternion

A [Quaternion](//en.wikipedia.org/wiki/Quaternion). Please note: if in the response you see “w: 1” and nothing else this is the default value of [0, 0, 0, 1] where x,y, and z are 0.

Attributes

w[RW]

The scalar component. Corresponds to the JSON property `w` @return [Float]

x[RW]

The x component. Corresponds to the JSON property `x` @return [Float]

y[RW]

The y component. Corresponds to the JSON property `y` @return [Float]

z[RW]

The z component. Corresponds to the JSON property `z` @return [Float]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/poly_v1/classes.rb, line 522
def update!(**args)
  @w = args[:w] if args.key?(:w)
  @x = args[:x] if args.key?(:x)
  @y = args[:y] if args.key?(:y)
  @z = args[:z] if args.key?(:z)
end