MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / JavaPointArrayToNative

Function JavaPointArrayToNative

Wrappers/OpenNI.jni/org_openni_NativeMethods.cpp:289–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void JavaPointArrayToNative(JNIEnv* env, jobjectArray javaArray, XnPoint3D* nativeArray)
290{
291 int count = env->GetArrayLength(javaArray);
292 for (int i = 0; i < count; ++i)
293 {
294 jobject curr = env->GetObjectArrayElement(javaArray, i);
295 Point3DToNative(env, curr, &nativeArray[i]);
296 }
297}
298
299void NativePointArrayToJava(JNIEnv* env, const XnPoint3D* nativeArray, jobjectArray javaArray)
300{

Calls 3

Point3DToNativeFunction · 0.85
GetArrayLengthMethod · 0.80
GetObjectArrayElementMethod · 0.80

Tested by

no test coverage detected