Codota Logo
Vector2.getX
Code IndexAdd Codota to your IDE (free)

How to use
getX
method
in
org.rajawali3d.math.vector.Vector2

Best Java code snippets using org.rajawali3d.math.vector.Vector2.getX (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: Rajawali/Rajawali

public void setCircleCenter(Vector2 center) {
  mCircleCenter[0] = (float)center.getX();
  mCircleCenter[1] = (float)center.getY();
}
origin: Rajawali/Rajawali

private void startRotation(final float x, final float y) {
  mapToScreen(x, y, mPrevScreenCoord);
  mCurrScreenCoord.setAll(mPrevScreenCoord.getX(), mPrevScreenCoord.getY());
  mIsRotating = true;
}
origin: Rajawali/Rajawali

private void applyRotation() {
  if (mIsRotating) {
    mapToSphere((float) mPrevScreenCoord.getX(), (float) mPrevScreenCoord.getY(), mPrevSphereCoord);
    mapToSphere((float) mCurrScreenCoord.getX(), (float) mCurrScreenCoord.getY(), mCurrSphereCoord);
    Vector3 rotationAxis = mPrevSphereCoord.clone();
    rotationAxis.cross(mCurrSphereCoord);
    rotationAxis.normalize();
    double rotationAngle = Math.acos(Math.min(1, mPrevSphereCoord.dot(mCurrSphereCoord)));
    mCurrentOrientation.fromAngleAxis(rotationAxis, MathUtil.radiansToDegrees(rotationAngle));
    mCurrentOrientation.normalize();
    Quaternion q = new Quaternion(mStartOrientation);
    q.multiply(mCurrentOrientation);
    mEmpty.setOrientation(q);
  }
}
origin: Rajawali/Rajawali

mesh.textureCoordinates[uvIndex] = (float) vert.textureCoordinate.getX();
mesh.textureCoordinates[uvIndex + 1] = (float) vert.textureCoordinate.getY();
origin: Rajawali/Rajawali

GLES20.glUniform2fv(muScaleHandle, 1, new float[] { (float) scale.getX(), (float) scale.getY() }, 0);
GLES20.glUniform3fv(muScreenPositionHandle, 1, new float[] { (float) screenPosition.x, (float) screenPosition.y, (float) screenPosition.z }, 0);
    GLES20.glUniform2fv(muScaleHandle, 1, new float[] { (float) scale.getX(), (float) scale.getY() }, 0);
    GLES20.glUniform1f(muRotationHandle, (float) sprite.getRotation());
origin: pondurii/vrVideo

private void startRotation(final float x, final float y)
{
  mapToScreen(x, y, mPrevScreenCoord);
  mCurrScreenCoord.setAll(mPrevScreenCoord.getX(), mPrevScreenCoord.getY());
  mIsRotating = true;
}
origin: pondurii/vrVideo

private void applyRotation()
{
  if (mIsRotating)
  {
    mapToSphere((float) mPrevScreenCoord.getX(), (float) mPrevScreenCoord.getY(), mPrevSphereCoord);
    mapToSphere((float) mCurrScreenCoord.getX(), (float) mCurrScreenCoord.getY(), mCurrSphereCoord);
    Vector3 rotationAxis = mPrevSphereCoord.clone();
    rotationAxis.cross(mCurrSphereCoord);
    rotationAxis.normalize();
    double rotationAngle = Math.acos(Math.min(1, mPrevSphereCoord.dot(mCurrSphereCoord)));
    mCurrentOrientation.fromAngleAxis(rotationAxis, MathUtil.radiansToDegrees(rotationAngle));
    mCurrentOrientation.normalize();
    Quaternion q = new Quaternion(mStartOrientation);
    q.multiply(mCurrentOrientation);
    mEmpty.setOrientation(q);
  }
}
origin: pondurii/vrVideo

mesh.textureCoordinates[uvIndex] = (float) vert.textureCoordinate.getX();
mesh.textureCoordinates[uvIndex + 1] = (float) vert.textureCoordinate.getY();
origin: pondurii/vrVideo

GLES20.glUniform2fv(muScaleHandle, 1, new float[] { (float) scale.getX(), (float) scale.getY() }, 0);
GLES20.glUniform3fv(muScreenPositionHandle, 1, new float[] { (float) screenPosition.x, (float) screenPosition.y, (float) screenPosition.z }, 0);
    GLES20.glUniform2fv(muScaleHandle, 1, new float[] { (float) scale.getX(), (float) scale.getY() }, 0);
    GLES20.glUniform1f(muRotationHandle, (float) sprite.getRotation());
org.rajawali3d.math.vectorVector2getX

Popular methods of Vector2

  • getY
  • <init>
  • setAll
  • setX
  • setY

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • setContentView (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now