本文整理汇总了Java中com.esotericsoftware.kryo.io.Input.readFloats方法的典型用法代码示例。如果您正苦于以下问题:Java Input.readFloats方法的具体用法?Java Input.readFloats怎么用?Java Input.readFloats使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.esotericsoftware.kryo.io.Input
的用法示例。
在下文中一共展示了Input.readFloats方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import com.esotericsoftware.kryo.io.Input; //导入方法依赖的package包/类
@Override
public WindowedMean read(Kryo kryo, Input input, Class<WindowedMean> type) {
int size = input.readVarInt(true);
int count = input.readVarInt(true);
float[] values = input.readFloats(count);
WindowedMean windowedMean = new WindowedMean(size);
for (int i = 0; i < values.length; i++) {
windowedMean.addValue(values[i]);
}
return windowedMean;
}
示例2: read
import com.esotericsoftware.kryo.io.Input; //导入方法依赖的package包/类
@Override
public Polyline read (Kryo kryo, Input input, Class<Polyline> type) {
int length = input.readInt();
float[] vertices = input.readFloats(length);
Polyline polyline = new Polyline(vertices);
polyline.setPosition(input.readFloat(), input.readFloat());
polyline.setOrigin(input.readFloat(), input.readFloat());
polyline.setRotation(input.readFloat());
polyline.setScale(input.readFloat(), input.readFloat());
return polyline;
}
示例3: read
import com.esotericsoftware.kryo.io.Input; //导入方法依赖的package包/类
@Override
public Polygon read (Kryo kryo, Input input, Class<Polygon> type) {
int length = input.readInt();
float[] vertices = input.readFloats(length);
Polygon polygon = new Polygon(vertices);
polygon.setPosition(input.readFloat(), input.readFloat());
polygon.setOrigin(input.readFloat(), input.readFloat());
polygon.setRotation(input.readFloat());
polygon.setScale(input.readFloat(), input.readFloat());
return polygon;
}
示例4: read
import com.esotericsoftware.kryo.io.Input; //导入方法依赖的package包/类
@Override
public Matrix4 read(Kryo kryo, Input input, Class<Matrix4> type) {
float[] values = input.readFloats(16);
return new Matrix4(values);
}
示例5: read
import com.esotericsoftware.kryo.io.Input; //导入方法依赖的package包/类
@Override
public Matrix3 read(Kryo kryo, Input input, Class<Matrix3> type) {
float[] values = input.readFloats(9);
return new Matrix3(values);
}