This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zzz_VectorMergerBlock.go
235 lines (200 loc) · 7.82 KB
/
zzz_VectorMergerBlock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
// Code generated by docs2go. DO NOT EDIT.
package babylon
import (
"syscall/js"
)
// VectorMergerBlock represents a babylon.js VectorMergerBlock.
// Block used to create a Vector2/3/4 out of individual inputs (one for each component)
type VectorMergerBlock struct {
*NodeMaterialBlock
ctx js.Value
}
// JSObject returns the underlying js.Value.
func (v *VectorMergerBlock) JSObject() js.Value { return v.p }
// VectorMergerBlock returns a VectorMergerBlock JavaScript class.
func (ba *Babylon) VectorMergerBlock() *VectorMergerBlock {
p := ba.ctx.Get("VectorMergerBlock")
return VectorMergerBlockFromJSObject(p, ba.ctx)
}
// VectorMergerBlockFromJSObject returns a wrapped VectorMergerBlock JavaScript class.
func VectorMergerBlockFromJSObject(p js.Value, ctx js.Value) *VectorMergerBlock {
return &VectorMergerBlock{NodeMaterialBlock: NodeMaterialBlockFromJSObject(p, ctx), ctx: ctx}
}
// VectorMergerBlockArrayToJSArray returns a JavaScript Array for the wrapped array.
func VectorMergerBlockArrayToJSArray(array []*VectorMergerBlock) []interface{} {
var result []interface{}
for _, v := range array {
result = append(result, v.JSObject())
}
return result
}
// NewVectorMergerBlock returns a new VectorMergerBlock object.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#constructor
func (ba *Babylon) NewVectorMergerBlock(name string) *VectorMergerBlock {
args := make([]interface{}, 0, 1+0)
args = append(args, name)
p := ba.ctx.Get("VectorMergerBlock").New(args...)
return VectorMergerBlockFromJSObject(p, ba.ctx)
}
// GetClassName calls the GetClassName method on the VectorMergerBlock object.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#getclassname
func (v *VectorMergerBlock) GetClassName() string {
retVal := v.p.Call("getClassName")
return retVal.String()
}
// W returns the W property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#w
func (v *VectorMergerBlock) W() *NodeMaterialConnectionPoint {
retVal := v.p.Get("w")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetW sets the W property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#w
func (v *VectorMergerBlock) SetW(w *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("w", w.JSObject())
return v
}
// X returns the X property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#x
func (v *VectorMergerBlock) X() *NodeMaterialConnectionPoint {
retVal := v.p.Get("x")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetX sets the X property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#x
func (v *VectorMergerBlock) SetX(x *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("x", x.JSObject())
return v
}
// Xy returns the Xy property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xy
func (v *VectorMergerBlock) Xy() *NodeMaterialConnectionPoint {
retVal := v.p.Get("xy")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetXy sets the Xy property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xy
func (v *VectorMergerBlock) SetXy(xy *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("xy", xy.JSObject())
return v
}
// XyIn returns the XyIn property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyin
func (v *VectorMergerBlock) XyIn() *NodeMaterialConnectionPoint {
retVal := v.p.Get("xyIn")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetXyIn sets the XyIn property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyin
func (v *VectorMergerBlock) SetXyIn(xyIn *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("xyIn", xyIn.JSObject())
return v
}
// XyOut returns the XyOut property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyout
func (v *VectorMergerBlock) XyOut() *NodeMaterialConnectionPoint {
retVal := v.p.Get("xyOut")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetXyOut sets the XyOut property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyout
func (v *VectorMergerBlock) SetXyOut(xyOut *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("xyOut", xyOut.JSObject())
return v
}
// Xyz returns the Xyz property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyz
func (v *VectorMergerBlock) Xyz() *NodeMaterialConnectionPoint {
retVal := v.p.Get("xyz")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetXyz sets the Xyz property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyz
func (v *VectorMergerBlock) SetXyz(xyz *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("xyz", xyz.JSObject())
return v
}
// XyzIn returns the XyzIn property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyzin
func (v *VectorMergerBlock) XyzIn() *NodeMaterialConnectionPoint {
retVal := v.p.Get("xyzIn")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetXyzIn sets the XyzIn property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyzin
func (v *VectorMergerBlock) SetXyzIn(xyzIn *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("xyzIn", xyzIn.JSObject())
return v
}
// XyzOut returns the XyzOut property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyzout
func (v *VectorMergerBlock) XyzOut() *NodeMaterialConnectionPoint {
retVal := v.p.Get("xyzOut")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetXyzOut sets the XyzOut property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyzout
func (v *VectorMergerBlock) SetXyzOut(xyzOut *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("xyzOut", xyzOut.JSObject())
return v
}
// Xyzw returns the Xyzw property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyzw
func (v *VectorMergerBlock) Xyzw() *NodeMaterialConnectionPoint {
retVal := v.p.Get("xyzw")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetXyzw sets the Xyzw property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#xyzw
func (v *VectorMergerBlock) SetXyzw(xyzw *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("xyzw", xyzw.JSObject())
return v
}
// Y returns the Y property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#y
func (v *VectorMergerBlock) Y() *NodeMaterialConnectionPoint {
retVal := v.p.Get("y")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetY sets the Y property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#y
func (v *VectorMergerBlock) SetY(y *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("y", y.JSObject())
return v
}
// Z returns the Z property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#z
func (v *VectorMergerBlock) Z() *NodeMaterialConnectionPoint {
retVal := v.p.Get("z")
return NodeMaterialConnectionPointFromJSObject(retVal, v.ctx)
}
// SetZ sets the Z property of class VectorMergerBlock.
//
// https://doc.babylonjs.com/api/classes/babylon.vectormergerblock#z
func (v *VectorMergerBlock) SetZ(z *NodeMaterialConnectionPoint) *VectorMergerBlock {
v.p.Set("z", z.JSObject())
return v
}