From 567b200b91537405689ae0ca944f121201360a6b Mon Sep 17 00:00:00 2001 From: Andrej Shadura Date: Thu, 29 Nov 2018 22:15:37 +0100 Subject: New upstream version 1.2018.13 --- src/gen/lib/fdpgen/grid__c.java | 40 +++++++++------------------------------- 1 file changed, 9 insertions(+), 31 deletions(-) (limited to 'src/gen/lib/fdpgen/grid__c.java') diff --git a/src/gen/lib/fdpgen/grid__c.java b/src/gen/lib/fdpgen/grid__c.java index 35122bc..8ec5049 100644 --- a/src/gen/lib/fdpgen/grid__c.java +++ b/src/gen/lib/fdpgen/grid__c.java @@ -47,10 +47,7 @@ package gen.lib.fdpgen; import static smetana.core.JUtilsDebug.ENTERING; import static smetana.core.JUtilsDebug.LEAVING; import static smetana.core.Macro.UNSUPPORTED; -import h.boxf; -import h.pointf; -import smetana.core.JUtils; -import smetana.core.__struct__; +import h.ST_pointf; public class grid__c { //1 2digov3edok6d5srhgtlmrycs @@ -310,14 +307,14 @@ throw new UnsupportedOperationException(); //3 c1s4k85p1cdfn176o3uryeros // static inline pointf pointfof(double x, double y) -public static __struct__ pointfof(double x, double y) { +public static ST_pointf pointfof(double x, double y) { // WARNING!! STRUCT return pointfof_w_(x, y).copy(); } -private static __struct__ pointfof_w_(double x, double y) { +private static ST_pointf pointfof_w_(double x, double y) { ENTERING("c1s4k85p1cdfn176o3uryeros","pointfof"); try { - final __struct__ r = JUtils.from(pointf.class); + final ST_pointf r = new ST_pointf(); r.setDouble("x", x); r.setDouble("y", y); return r; @@ -346,25 +343,6 @@ throw new UnsupportedOperationException(); -//3 1vvsta5i8of59frav6uymguav -// static inline boxf boxfof(double llx, double lly, double urx, double ury) -public static __struct__ boxfof(double llx, double lly, double urx, double ury) { -// WARNING!! STRUCT -return boxfof_w_(llx, lly, urx, ury).copy(); -} -private static __struct__ boxfof_w_(double llx, double lly, double urx, double ury) { -ENTERING("1vvsta5i8of59frav6uymguav","boxfof"); -try { - final __struct__ b = JUtils.from(boxf.class); - b.getStruct("LL").setDouble("x", llx); - b.getStruct("LL").setDouble("y", lly); - b.getStruct("UR").setDouble("x", urx); - b.getStruct("UR").setDouble("y", ury); - return b; -} finally { -LEAVING("1vvsta5i8of59frav6uymguav","boxfof"); -} -} @@ -388,16 +366,16 @@ throw new UnsupportedOperationException(); //3 arrsbik9b5tnfcbzsm8gr2chx // static inline pointf add_pointf(pointf p, pointf q) -public static __struct__ add_pointf(final __struct__ p, final __struct__ q) { +public static ST_pointf add_pointf(final ST_pointf p, final ST_pointf q) { // WARNING!! STRUCT return add_pointf_w_(p.copy(), q.copy()).copy(); } -private static __struct__ add_pointf_w_(final __struct__ p, final __struct__ q) { +private static ST_pointf add_pointf_w_(final ST_pointf p, final ST_pointf q) { ENTERING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf"); try { - final __struct__ r = JUtils.from(pointf.class); - r.setDouble("x", p.getDouble("x") + q.getDouble("x")); - r.setDouble("y", p.getDouble("y") + q.getDouble("y")); + final ST_pointf r = new ST_pointf(); + r.setDouble("x", p.x + q.x); + r.setDouble("y", p.y + q.y); return r; } finally { LEAVING("arrsbik9b5tnfcbzsm8gr2chx","add_pointf"); -- cgit v1.2.3