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

Method planarRotate

src/main/java/trace/graphics/LoadPly.kt:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 fun show(layer: Stage.ShaderGroup, name: String, size: Float) {
49 val v = layer.pointBuilder(name)
50
51 v.open()
52 v.aux(2, size)
53 points.forEach {
54 v.aux(1, it.color)
55 if (it.normal != null)
56 v.aux(4, it.normal)
57 if (it.color != null)
58 v.aux(1, it.color)
59 v.v(it.at)
60 }
61 v.close()
62 }
63
64 fun planarRotate(center: Vec3, up: Vec3, amount: Float) {
65 val q = Quat().setAngleAxis(amount.toDouble(), up.normalize())
66

Callers

nothing calls this directly

Calls 6

QuatClass · 0.85
setAngleAxisMethod · 0.80
transformMethod · 0.65
Vec3Class · 0.50
normalizeMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected