Created
October 27, 2016 13:36
-
-
Save andikan/8221949db4275d424b0db5d18412bd21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArrayList<GData> getNorthGaussBits() { | |
ArrayList<GData> northGaussBits = new ArrayList<GData>(); | |
if (wsData != null) { | |
JSONArray gaussBits = JSONObject.parse(wsData).getJSONArray("northGaussBits"); | |
for(int i=0; i<gaussBits.size(); i++) { | |
JSONObject gb = gaussBits.getJSONObject(i); | |
northGaussBits.add(new GData(gb.getFloat("x")*width, gb.getFloat("y")*height, gb.getFloat("intensity"), gb.getFloat("angle"), gb.getFloat("pitch"))); | |
} | |
} | |
return northGaussBits; | |
} | |
ArrayList<GData> getSouthGaussBits() { | |
ArrayList<GData> southGaussBits = new ArrayList<GData>(); | |
if (wsData != null) { | |
JSONArray gaussBits = JSONObject.parse(wsData).getJSONArray("southGaussBits"); | |
for(int i=0; i<gaussBits.size(); i++) { | |
JSONObject gb = gaussBits.getJSONObject(i); | |
southGaussBits.add(new GData(gb.getFloat("x")*width, gb.getFloat("y")*height, gb.getFloat("intensity"), gb.getFloat("angle"), gb.getFloat("pitch"))); | |
} | |
} | |
return southGaussBits; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment