Tabnine Logo
Vector4.getW
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.ardor3d.math.Vector4.getW (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.mathVector4getW

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.
  • getX
  • 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

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Collectors (java.util.stream)
  • JFileChooser (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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