本文整理汇总了Java中com.watabou.glwrap.Matrix类的典型用法代码示例。如果您正苦于以下问题:Java Matrix类的具体用法?Java Matrix怎么用?Java Matrix使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Matrix类属于com.watabou.glwrap包,在下文中一共展示了Matrix类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Camera
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
public Camera(int x, int y, int width, int height, float zoom) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.zoom = zoom;
screenWidth = (int) (width * zoom);
screenHeight = (int) (height * zoom);
scroll = new PointF();
matrix = new float[16];
Matrix.setIdentity(matrix);
}
示例2: Camera
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
public Camera( int x, int y, int width, int height, float zoom ) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.zoom = zoom;
screenWidth = (int)(width * zoom);
screenHeight = (int)(height * zoom);
scroll = new PointF();
matrix = new float[16];
Matrix.setIdentity( matrix );
}
示例3: Camera
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
public Camera(int x, int y, int width, int height, float zoom)
{
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.zoom = zoom;
screenWidth = (int) (width * zoom);
screenHeight = (int) (height * zoom);
scroll = new PointF();
matrix = new float[16];
Matrix.setIdentity(matrix);
}
示例4: Camera
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
public Camera(int x, int y, int width, int height, float zoom) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.zoom = zoom;
screenWidth = (int) (width * zoom);
screenHeight = (int) (height * zoom);
scroll = new PointF();
matrix = new float[16];
Matrix.setIdentity(matrix);
}
示例5: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
@Override
protected void updateMatrix() {
// "origin" field is ignored
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.scale(matrix, scale.x, scale.y);
Matrix.rotate(matrix, angle);
}
示例6: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
if (origin.x != 0 || origin.y != 0)
Matrix.translate(matrix, origin.x, origin.y);
if (angle != 0) {
Matrix.rotate(matrix, angle);
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale(matrix, scale.x, scale.y);
}
if (origin.x != 0 || origin.y != 0)
Matrix.translate(matrix, -origin.x, -origin.y);
}
示例7: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
@Override
protected void updateMatrix() {
// "origin" field is ignored
Matrix.setIdentity( matrix );
Matrix.translate( matrix, x, y );
Matrix.scale( matrix, scale.x, scale.y );
Matrix.rotate( matrix, angle );
}
示例8: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity( matrix );
Matrix.translate( matrix, x, y );
if (origin.x != 0 || origin.y != 0)
Matrix.translate( matrix, origin.x, origin.y );
if (angle != 0) {
Matrix.rotate( matrix, angle );
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale( matrix, scale.x, scale.y );
}
if (origin.x != 0 || origin.y != 0)
Matrix.translate( matrix, -origin.x, -origin.y );
}
示例9: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
@Override
protected void updateMatrix()
{
// "origin" field is ignored
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.scale(matrix, scale.x, scale.y);
Matrix.rotate(matrix, angle);
}
示例10: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
protected void updateMatrix()
{
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.translate(matrix, origin.x, origin.y);
if (angle != 0)
{
Matrix.rotate(matrix, angle);
}
if (scale.x != 1 || scale.y != 1)
{
Matrix.scale(matrix, scale.x, scale.y);
}
Matrix.translate(matrix, -origin.x, -origin.y);
}
示例11: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity( matrix );
Matrix.translate( matrix, x, y );
Matrix.translate( matrix, origin.x, origin.y );
if (angle != 0) {
Matrix.rotate( matrix, angle );
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale( matrix, scale.x, scale.y );
}
Matrix.translate(matrix, -origin.x, -origin.y);
}
示例12: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity( matrix );
Matrix.translate( matrix, x, y );
Matrix.translate( matrix, origin.x, origin.y );
if (angle != 0) {
Matrix.rotate( matrix, angle );
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale( matrix, scale.x, scale.y );
}
Matrix.translate( matrix, -origin.x, -origin.y );
}
示例13: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
@Override
protected void updateMatrix() {
// "origin" field is ignored
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.scale(matrix, scale.x, scale.y);
Matrix.rotate(matrix, angle);
}
示例14: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.translate(matrix, origin.x, origin.y);
if (angle != 0) {
Matrix.rotate(matrix, angle);
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale(matrix, scale.x, scale.y);
}
Matrix.translate(matrix, -origin.x, -origin.y);
}
示例15: updateMatrix
import com.watabou.glwrap.Matrix; //导入依赖的package包/类
@Override
protected void updateMatrix() {
super.updateMatrix();
Matrix.copy(matrix, shadowMatrix);
Matrix.translate(shadowMatrix,
(width() * (1f - shadowWidth)) / 2f,
(height() * (1f - shadowHeight)) + shadowOffset);
Matrix.scale(shadowMatrix, shadowWidth, shadowHeight);
}