1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package quaternion
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93 type Quaternion struct {
94 state protoimpl.MessageState
95 sizeCache protoimpl.SizeCache
96 unknownFields protoimpl.UnknownFields
97
98
99 X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
100
101 Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
102
103 Z float64 `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"`
104
105 W float64 `protobuf:"fixed64,4,opt,name=w,proto3" json:"w,omitempty"`
106 }
107
108 func (x *Quaternion) Reset() {
109 *x = Quaternion{}
110 if protoimpl.UnsafeEnabled {
111 mi := &file_google_type_quaternion_proto_msgTypes[0]
112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
113 ms.StoreMessageInfo(mi)
114 }
115 }
116
117 func (x *Quaternion) String() string {
118 return protoimpl.X.MessageStringOf(x)
119 }
120
121 func (*Quaternion) ProtoMessage() {}
122
123 func (x *Quaternion) ProtoReflect() protoreflect.Message {
124 mi := &file_google_type_quaternion_proto_msgTypes[0]
125 if protoimpl.UnsafeEnabled && x != nil {
126 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
127 if ms.LoadMessageInfo() == nil {
128 ms.StoreMessageInfo(mi)
129 }
130 return ms
131 }
132 return mi.MessageOf(x)
133 }
134
135
136 func (*Quaternion) Descriptor() ([]byte, []int) {
137 return file_google_type_quaternion_proto_rawDescGZIP(), []int{0}
138 }
139
140 func (x *Quaternion) GetX() float64 {
141 if x != nil {
142 return x.X
143 }
144 return 0
145 }
146
147 func (x *Quaternion) GetY() float64 {
148 if x != nil {
149 return x.Y
150 }
151 return 0
152 }
153
154 func (x *Quaternion) GetZ() float64 {
155 if x != nil {
156 return x.Z
157 }
158 return 0
159 }
160
161 func (x *Quaternion) GetW() float64 {
162 if x != nil {
163 return x.W
164 }
165 return 0
166 }
167
168 var File_google_type_quaternion_proto protoreflect.FileDescriptor
169
170 var file_google_type_quaternion_proto_rawDesc = []byte{
171 0x0a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x71, 0x75,
172 0x61, 0x74, 0x65, 0x72, 0x6e, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b,
173 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x44, 0x0a, 0x0a, 0x51,
174 0x75, 0x61, 0x74, 0x65, 0x72, 0x6e, 0x69, 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01,
175 0x20, 0x01, 0x28, 0x01, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01,
176 0x28, 0x01, 0x52, 0x01, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01,
177 0x52, 0x01, 0x7a, 0x12, 0x0c, 0x0a, 0x01, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x01,
178 0x77, 0x42, 0x6f, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
179 0x74, 0x79, 0x70, 0x65, 0x42, 0x0f, 0x51, 0x75, 0x61, 0x74, 0x65, 0x72, 0x6e, 0x69, 0x6f, 0x6e,
180 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
181 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
182 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x74,
183 0x79, 0x70, 0x65, 0x2f, 0x71, 0x75, 0x61, 0x74, 0x65, 0x72, 0x6e, 0x69, 0x6f, 0x6e, 0x3b, 0x71,
184 0x75, 0x61, 0x74, 0x65, 0x72, 0x6e, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47,
185 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
186 }
187
188 var (
189 file_google_type_quaternion_proto_rawDescOnce sync.Once
190 file_google_type_quaternion_proto_rawDescData = file_google_type_quaternion_proto_rawDesc
191 )
192
193 func file_google_type_quaternion_proto_rawDescGZIP() []byte {
194 file_google_type_quaternion_proto_rawDescOnce.Do(func() {
195 file_google_type_quaternion_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_quaternion_proto_rawDescData)
196 })
197 return file_google_type_quaternion_proto_rawDescData
198 }
199
200 var file_google_type_quaternion_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
201 var file_google_type_quaternion_proto_goTypes = []interface{}{
202 (*Quaternion)(nil),
203 }
204 var file_google_type_quaternion_proto_depIdxs = []int32{
205 0,
206 0,
207 0,
208 0,
209 0,
210 }
211
212 func init() { file_google_type_quaternion_proto_init() }
213 func file_google_type_quaternion_proto_init() {
214 if File_google_type_quaternion_proto != nil {
215 return
216 }
217 if !protoimpl.UnsafeEnabled {
218 file_google_type_quaternion_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
219 switch v := v.(*Quaternion); i {
220 case 0:
221 return &v.state
222 case 1:
223 return &v.sizeCache
224 case 2:
225 return &v.unknownFields
226 default:
227 return nil
228 }
229 }
230 }
231 type x struct{}
232 out := protoimpl.TypeBuilder{
233 File: protoimpl.DescBuilder{
234 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
235 RawDescriptor: file_google_type_quaternion_proto_rawDesc,
236 NumEnums: 0,
237 NumMessages: 1,
238 NumExtensions: 0,
239 NumServices: 0,
240 },
241 GoTypes: file_google_type_quaternion_proto_goTypes,
242 DependencyIndexes: file_google_type_quaternion_proto_depIdxs,
243 MessageInfos: file_google_type_quaternion_proto_msgTypes,
244 }.Build()
245 File_google_type_quaternion_proto = out.File
246 file_google_type_quaternion_proto_rawDesc = nil
247 file_google_type_quaternion_proto_goTypes = nil
248 file_google_type_quaternion_proto_depIdxs = nil
249 }
250
View as plain text