congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Vector4.getX
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * @return the squared magnitude or squared distance between the origin (0, 0, 0, 0) and the point described by this
 *         vector (x, y, z, w)
 */
@Override
public double lengthSquared() {
  return getX() * getX() + getY() * getY() + getZ() * getZ() + getW() * getW();
}
origin: com.ardor3d/ardor3d-math

/**
 * @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: 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: com.ardor3d/ardor3d-math

/**
 * 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: 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());
}
com.ardor3d.mathVector4getX

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
  • getY
  • 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

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Join (org.hibernate.mapping)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now