JNIEXPORT void JNICALL Java_org_openscenegraph_osg_core_Vec3_nativeSetZ(JNIEnv *, jclass, jlong cptr, jfloat value) { RefVec3 *v = reinterpret_cast<RefVec3 *>(cptr); if(v != 0) { v->z() = value; } }
JNIEXPORT float JNICALL Java_org_openscenegraph_osg_core_Vec3_nativeZ(JNIEnv *, jclass, jlong cptr) { RefVec3 *v = reinterpret_cast<RefVec3 *>(cptr); if(v != 0) { return v->z(); } return 0.0f; }