public static CoordinateSystem FromAngles(Vec3 angles) { CoordinateSystem system = new CoordinateSystem(); FCE_Core_GetAxisFromAngles(angles.X, angles.Y, angles.Z, out system.axisX.X, out system.axisX.Y, out system.axisX.Z, out system.axisY.X, out system.axisY.Y, out system.axisY.Z, out system.axisZ.X, out system.axisZ.Y, out system.axisZ.Z); return system; }
public Vec3 ConvertToSystem(Vec3 pos, CoordinateSystem coords) { Vec3 vec = this.ConvertToWorld(pos); return coords.ConvertFromWorld(vec); }
static CoordinateSystem() { Standard = new CoordinateSystem(new Vec3(1f, 0f, 0f), new Vec3(0f, 1f, 0f), new Vec3(0f, 0f, 1f)); }