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

Method positionAtTime

src/main/java/trace/mocap/Mocap.kt:114–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 @Documentation("returns the position of point `pointNum` at time `time` where time goes from 0 to 1 over the course of the clip")
115 fun positionAtTime(time: Double, pointNum: Int): Vec3 {
116 if (pointNum >= splines.size) throw IllegalArgumentException(" no such point $pointNum, there are only ${splines.size} points in this file")
117 return splines[pointNum].evaluate(time * file.frames.size, Vec3())
118 }
119
120 @Documentation("returns the velocity of point `pointNum` at time `time` where time goes from 0 to 1 over the course of the clip")
121 fun velocityAtTime(time: Double, pointNum: Int): Vec3 {

Callers

nothing calls this directly

Calls 2

Vec3Class · 0.50
evaluateMethod · 0.45

Tested by

no test coverage detected