|
|
@@ -762,13 +762,13 @@ public class o09Axis
|
|
|
}
|
|
|
|
|
|
private void setAccIdentity(Vector3 value) {
|
|
|
- if (IsWindows()) SetAccIdentity(value);
|
|
|
- else SO_SetAccIdentity(value);
|
|
|
+ if (IsWindows()) SetAccIdentity(new Vector3D(value));
|
|
|
+ else SO_SetAccIdentity(new Vector3D(value));
|
|
|
}
|
|
|
|
|
|
private void setMagIdentity(Vector3 value) {
|
|
|
- if (IsWindows()) SetMagIdentity(value);
|
|
|
- else SO_SetMagIdentity(value);
|
|
|
+ if (IsWindows()) SetMagIdentity(new Vector3D(value));
|
|
|
+ else SO_SetMagIdentity(new Vector3D(value));
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -785,9 +785,9 @@ public class o09Axis
|
|
|
[DllImport("o09Axis")]
|
|
|
extern static Vector3 GetMagIdentity_f();
|
|
|
[DllImport("o09Axis")]
|
|
|
- extern static void SetAccIdentity(Vector3 value);
|
|
|
+ extern static void SetAccIdentity(Vector3D value);
|
|
|
[DllImport("o09Axis")]
|
|
|
- extern static void SetMagIdentity(Vector3 value);
|
|
|
+ extern static void SetMagIdentity(Vector3D value);
|
|
|
|
|
|
|
|
|
[DllImport("libSharedObjectAxis")]
|
|
|
@@ -803,7 +803,18 @@ public class o09Axis
|
|
|
[DllImport("libSharedObjectAxis")]
|
|
|
extern static Vector3 SO_GetMagIdentity_f();
|
|
|
[DllImport("libSharedObjectAxis")]
|
|
|
- extern static void SO_SetAccIdentity(Vector3 value);
|
|
|
+ extern static void SO_SetAccIdentity(Vector3D value);
|
|
|
[DllImport("libSharedObjectAxis")]
|
|
|
- extern static void SO_SetMagIdentity(Vector3 value);
|
|
|
+ extern static void SO_SetMagIdentity(Vector3D value);
|
|
|
+
|
|
|
+ public struct Vector3D {
|
|
|
+ public double x;
|
|
|
+ public double y;
|
|
|
+ public double z;
|
|
|
+ public Vector3D(Vector3 v) {
|
|
|
+ this.x = v.x;
|
|
|
+ this.y = v.y;
|
|
|
+ this.z = v.z;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|