IT. Expert System.

Android Reference

Matrix2f


android.support.v8.renderscript

Class Matrix2f



  • public class Matrix2f
    extends Object
    Class for exposing the native Renderscript rs_matrix2x2 type back to the Android system.
    • Constructor Summary

      Constructors
      Constructor and Description
      Matrix2f()
      Creates a new identity 2x2 matrix
      Matrix2f(float[] dataArray)
      Creates a new matrix and sets its values from the given parameter
    • Method Summary

      Methods
      Modifier and Type Method and Description
      float get(int x, int y)
      Returns the value for a given row and column
      float[] getArray()
      Return a reference to the internal array representing matrix values.
      void load(Matrix2f src)
      Sets the values of the matrix to those of the parameter
      void loadIdentity()
      Sets the matrix values to identity
      void loadMultiply(Matrix2f lhs, Matrix2f rhs)
      Sets current values to be the result of multiplying two given matrices
      void loadRotate(float rot)
      Sets current values to be a rotation matrix of given angle
      void loadScale(float x, float y)
      Sets current values to be a scale matrix of given dimensions
      void multiply(Matrix2f rhs)
      Post-multiplies the current matrix by a given parameter
      void rotate(float rot)
      Modifies the current matrix by post-multiplying it with a rotation matrix of given angle
      void scale(float x, float y)
      Modifies the current matrix by post-multiplying it with a scale matrix of given dimensions
      void set(int x, int y, float v)
      Sets the value for a given row and column
      void transpose()
      Sets the current matrix to its transpose
    • Constructor Detail

      • Matrix2f

        public Matrix2f()
        Creates a new identity 2x2 matrix
      • Matrix2f

        public Matrix2f(float[] dataArray)
        Creates a new matrix and sets its values from the given parameter
        Parameters:
        dataArray - values to set the matrix to, must be 4 floats long
    • Method Detail

      • getArray

        public float[] getArray()
        Return a reference to the internal array representing matrix values. Modifying this array will also change the matrix
        Returns:
        internal array representing the matrix
      • get

        public float get(int x,
                int y)
        Returns the value for a given row and column
        Parameters:
        x - column of the value to return
        y - row of the value to return
        Returns:
        value in the yth row and xth column
      • set

        public void set(int x,
               int y,
               float v)
        Sets the value for a given row and column
        Parameters:
        x - column of the value to set
        y - row of the value to set
      • loadIdentity

        public void loadIdentity()
        Sets the matrix values to identity
      • load

        public void load(Matrix2f src)
        Sets the values of the matrix to those of the parameter
        Parameters:
        src - matrix to load the values from
      • loadRotate

        public void loadRotate(float rot)
        Sets current values to be a rotation matrix of given angle
        Parameters:
        rot - rotation angle
      • loadScale

        public void loadScale(float x,
                     float y)
        Sets current values to be a scale matrix of given dimensions
        Parameters:
        x - scale component x
        y - scale component y
      • loadMultiply

        public void loadMultiply(Matrix2f lhs,
                        Matrix2f rhs)
        Sets current values to be the result of multiplying two given matrices
        Parameters:
        lhs - left hand side matrix
        rhs - right hand side matrix
      • multiply

        public void multiply(Matrix2f rhs)
        Post-multiplies the current matrix by a given parameter
        Parameters:
        rhs - right hand side to multiply by
      • rotate

        public void rotate(float rot)
        Modifies the current matrix by post-multiplying it with a rotation matrix of given angle
        Parameters:
        rot - angle of rotation
      • scale

        public void scale(float x,
                 float y)
        Modifies the current matrix by post-multiplying it with a scale matrix of given dimensions
        Parameters:
        x - scale component x
        y - scale component y
      • transpose

        public void transpose()
        Sets the current matrix to its transpose


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 276 / 158697785. Delta: 0.03834 с