public static class TransformationHelper.Deserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<TransformationMatrix>
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) |
static Quaternion |
parseRotation(com.google.gson.JsonElement e) |
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
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)