Example usage for com.google.gwt.corp.webgl.client WebGLFloatArray get

List of usage examples for com.google.gwt.corp.webgl.client WebGLFloatArray get

Introduction

In this page you can find the example usage for com.google.gwt.corp.webgl.client WebGLFloatArray get.

Prototype

public native final float get(int index) ;

Source Link

Document

Return the element at the given index.

Usage

From source file:jake2.gwt.client.WebGLAdapter.java

License:Open Source License

public String webGLFloatArrayToString(WebGLFloatArray fa) {
    StringBuilder sb = new StringBuilder();
    sb.append("len: " + fa.getLength());
    sb.append("data: ");
    for (int i = 0; i < Math.min(fa.getLength(), 10); i++) {
        sb.append(fa.get(i) + ",");
    }//w  w  w . j a  va  2s .c o m
    return sb.toString();
}