public static class TransformationHelper.Deserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<TransformationMatrix>
Modifier and Type | Field and Description |
---|---|
private static Vector3f |
ORIGIN_CENTER |
private static Vector3f |
ORIGIN_CORNER |
private static Vector3f |
ORIGIN_OPPOSING_CORNER |
Constructor and Description |
---|
Deserializer() |
Modifier and Type | Method and Description |
---|---|
TransformationMatrix |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
static Quaternion |
parseAxisRotation(com.google.gson.JsonElement e) |
static float[] |
parseFloatArray(com.google.gson.JsonElement e,
int length,
java.lang.String prefix) |
static Matrix4f |
parseMatrix(com.google.gson.JsonElement e) |
private static Vector3f |
parseOrigin(com.google.gson.JsonObject obj) |
static Quaternion |
parseRotation(com.google.gson.JsonElement e) |
private static final Vector3f ORIGIN_CORNER
private static final Vector3f ORIGIN_OPPOSING_CORNER
private static final Vector3f ORIGIN_CENTER
public TransformationMatrix deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<TransformationMatrix>
com.google.gson.JsonParseException
private static Vector3f parseOrigin(com.google.gson.JsonObject obj)
public static Matrix4f parseMatrix(com.google.gson.JsonElement e)
public static float[] parseFloatArray(com.google.gson.JsonElement e, int length, java.lang.String prefix)
public static Quaternion parseAxisRotation(com.google.gson.JsonElement e)
public static Quaternion parseRotation(com.google.gson.JsonElement e)