MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / invoke

Function invoke

src/main/java/field/utility/KotlinExtensions.kt:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 val v = Vec2(this)
137 if (x!=null)
138 v.x = x
139 if (y!=null)
140 v.y = y
141 return v
142}
143
144fun Vec3.invoke(x : Double? = null, y : Double? = null, z : Double? = null) : Vec3 {
145 val v = Vec3(this)
146 if (x!=null)
147 v.x = x
148 if (y!=null)

Callers

nothing calls this directly

Calls 3

Vec2Function · 0.70
Vec3Function · 0.70
Vec4Function · 0.70

Tested by

no test coverage detected