Codota Logo
Vector4.getY
Code IndexAdd Codota to your IDE (free)

How to use
getY
method
in
com.ardor3d.math.Vector4

Best Java code snippets using com.ardor3d.math.Vector4.getY (Showing top 20 results out of 315)

  • Common ways to obtain Vector4
private void myMethod () {
Vector4 v =
  • Codota Iconnew Vector4()
  • Codota IconVector4.fetchTempInstance()
  • Codota IconReadOnlyVector4 src;new Vector4(src)
  • Smart code suggestions by Codota
}
origin: com.ardor3d/ardor3d-terrain

@Override
public void updateBoundsFromElement() {
  final Rectangle2D rect = _shape.getBounds2D();
  _awtBounds.set(rect.getMinX() - _margin.getX(), rect.getMinY() - _margin.getY(),
      rect.getWidth() + _margin.getX() + _margin.getZ(), rect.getHeight() + _margin.getY() + _margin.getW());
}
origin: Renanse/Ardor3D

@Override
public void updateBoundsFromElement() {
  final Rectangle2D rect = _shape.getBounds2D();
  _awtBounds.set(rect.getMinX() - _margin.getX(), rect.getMinY() - _margin.getY(),
      rect.getWidth() + _margin.getX() + _margin.getZ(), rect.getHeight() + _margin.getY() + _margin.getW());
}
origin: com.ardor3d/ardor3d-math

/**
 * @param x
 * @param y
 * @param z
 * @param w
 * @return the dot product of this vector with the given x, y, z, w values.
 */
@Override
public double dot(final double x, final double y, final double z, final double w) {
  return getX() * x + getY() * y + getZ() * z + getW() * w;
}
origin: Renanse/Ardor3D

/**
 * @return the string representation of this vector.
 */
@Override
public String toString() {
  return "com.ardor3d.math.Vector4 [X=" + getX() + ", Y=" + getY() + ", Z=" + getZ() + ", W=" + getW() + "]";
}
origin: Renanse/Ardor3D

/**
 * @param x
 * @param y
 * @param z
 * @param w
 * @return the dot product of this vector with the given x, y, z, w values.
 */
@Override
public double dot(final double x, final double y, final double z, final double w) {
  return getX() * x + getY() * y + getZ() * z + getW() * w;
}
origin: com.ardor3d/ardor3d-math

/**
 * Increments the values of this vector with the given x, y, z and w values.
 * 
 * @param x
 * @param y
 * @param z
 * @param w
 * @return this vector for chaining
 */
public Vector4 addLocal(final double x, final double y, final double z, final double w) {
  return set(getX() + x, getY() + y, getZ() + z, getW() + w);
}
origin: Renanse/Ardor3D

/**
 * Internally modifies the values of this vector by multiplying them each by the given scalar value.
 * 
 * @param scalar
 * @return this vector for chaining
 */
public Vector4 multiplyLocal(final double scalar) {
  return set(getX() * scalar, getY() * scalar, getZ() * scalar, getW() * scalar);
}
origin: com.ardor3d/ardor3d-math

/**
 * Decrements the values of this vector by the given x, y, z and w values.
 * 
 * @param x
 * @param y
 * @param z
 * @param w
 * @return this vector for chaining
 */
public Vector4 subtractLocal(final double x, final double y, final double z, final double w) {
  return set(getX() - x, getY() - y, getZ() - z, getW() - w);
}
origin: com.ardor3d/ardor3d-math

/**
 * Internally modifies the values of this vector by multiplying them each by the given scalar value.
 * 
 * @param scalar
 * @return this vector for chaining
 */
public Vector4 multiplyLocal(final double scalar) {
  return set(getX() * scalar, getY() * scalar, getZ() * scalar, getW() * scalar);
}
origin: com.ardor3d/ardor3d-math

/**
 * Internally modifies the values of this vector by multiplying them each by the given scale values.
 * 
 * @param x
 * @param y
 * @param z
 * @param w
 * @return this vector for chaining
 */
public Vector4 multiplyLocal(final double x, final double y, final double z, final double w) {
  return set(getX() * x, getY() * y, getZ() * z, getW() * w);
}
origin: Renanse/Ardor3D

/**
 * Internally modifies the values of this vector by dividing them each by the given scale values.
 * 
 * @param x
 * @param y
 * @param z
 * @param w
 * @return this vector for chaining
 */
public Vector4 divideLocal(final double x, final double y, final double z, final double w) {
  return set(getX() / x, getY() / y, getZ() / z, getW() / w);
}
origin: Renanse/Ardor3D

/**
 * Internally modifies the values of this vector by multiplying them each by the given scale values.
 * 
 * @param x
 * @param y
 * @param z
 * @param w
 * @return this vector for chaining
 */
public Vector4 multiplyLocal(final double x, final double y, final double z, final double w) {
  return set(getX() * x, getY() * y, getZ() * z, getW() * w);
}
origin: Renanse/Ardor3D

/**
 * Increments the values of this vector with the given x, y, z and w values.
 * 
 * @param x
 * @param y
 * @param z
 * @param w
 * @return this vector for chaining
 */
public Vector4 addLocal(final double x, final double y, final double z, final double w) {
  return set(getX() + x, getY() + y, getZ() + z, getW() + w);
}
origin: com.ardor3d/ardor3d-effects

private void getWorldIntersection(final double planeHeight, final ReadOnlyVector2 screenPosition,
    final ReadOnlyMatrix4 modelViewProjectionInverseMatrix, final Vector3 store) {
  calculateIntersection(planeHeight, screenPosition, modelViewProjectionInverseMatrix);
  store.set(origin.getX(), origin.getY(), origin.getZ()).divideLocal(origin.getW());
}
origin: Renanse/Ardor3D

private void getWorldIntersection(final double planeHeight, final ReadOnlyVector2 screenPosition,
    final ReadOnlyMatrix4 modelViewProjectionInverseMatrix, final Vector3 store) {
  calculateIntersection(planeHeight, screenPosition, modelViewProjectionInverseMatrix);
  store.set(origin.getX(), origin.getY(), origin.getZ()).divideLocal(origin.getW());
}
origin: com.ardor3d/ardor3d-math

@Override
public void write(final OutputCapsule capsule) throws IOException {
  capsule.write(getX(), "x", 0);
  capsule.write(getY(), "y", 0);
  capsule.write(getZ(), "z", 0);
  capsule.write(getW(), "w", 0);
}
origin: com.ardor3d/ardor3d-math

/**
 * Internally modifies the values of this vector by dividing them each by the given scale values.
 * 
 * @param scale
 * @return this vector for chaining
 */
public Vector4 divideLocal(final ReadOnlyVector4 scale) {
  return set(getX() / scale.getX(), getY() / scale.getY(), getZ() / scale.getZ(), getW() / scale.getW());
}
origin: Renanse/Ardor3D

/**
 * Internally modifies the values of this vector by dividing them each by the given scale values.
 * 
 * @param scale
 * @return this vector for chaining
 */
public Vector4 divideLocal(final ReadOnlyVector4 scale) {
  return set(getX() / scale.getX(), getY() / scale.getY(), getZ() / scale.getZ(), getW() / scale.getW());
}
origin: com.ardor3d/ardor3d-math

/**
 * Internally modifies the values of this vector by multiplying them each by the given scale values.
 * 
 * @param scale
 * @return this vector for chaining
 */
public Vector4 multiplyLocal(final ReadOnlyVector4 scale) {
  return set(getX() * scale.getX(), getY() * scale.getY(), getZ() * scale.getZ(), getW() * scale.getW());
}
origin: Renanse/Ardor3D

/**
 * Internally modifies the values of this vector by multiplying them each by the given scale values.
 * 
 * @param scale
 * @return this vector for chaining
 */
public Vector4 multiplyLocal(final ReadOnlyVector4 scale) {
  return set(getX() * scale.getX(), getY() * scale.getY(), getZ() * scale.getZ(), getW() * scale.getW());
}
com.ardor3d.mathVector4getY

Popular methods of Vector4

  • <init>
    Constructs a new vector set to the (x, y, z, w) values of the given source vector.
  • set
    Sets the value of this vector to the (x, y, z, w) values of the provided source vector.
  • getW
  • getX
  • getZ
  • addLocal
    Increments the values of this vector with the x, y, z and w values of the given vector.
  • getXf
  • getYf
  • getZf
  • multiplyLocal
    Internally modifies the values of this vector by multiplying them each by the given scale values.
  • setW
    Sets the fourth component of this vector to the given double value.
  • setX
    Sets the first component of this vector to the given double value.
  • setW,
  • setX,
  • setY,
  • setZ,
  • dot,
  • fetchTempInstance,
  • getWf,
  • multiply,
  • normalizeLocal

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Notification (javax.management)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
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