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

How to use
getW
method
in
javax.vecmath.Tuple4d

Best Java code snippets using javax.vecmath.Tuple4d.getW (Showing top 5 results out of 315)

origin: us.ihmc/IHMCRoboticsToolkit

  public static String tuple4dToString(Tuple4d tuple, NumberFormat format)
  {
   String xToString = format.format(tuple.getX());
   String yToString = format.format(tuple.getY());
   String zToString = format.format(tuple.getZ());
   String sToString = format.format(tuple.getW());
   return "(" + xToString + ", " + yToString + ", " + zToString + ", " + sToString + ")";
  }
}
origin: us.ihmc/IHMCCommunication

/**
* Checks the validity of a {@link Tuple4d}
* @param tuple4dToCheck
* @return null if the tuple4d is valid, or the error message.
*/
public static ObjectErrorType validateTuple4d(Tuple4d tuple4dToCheck)
{
 if (tuple4dToCheck == null)
   return ObjectErrorType.NULL;
 if (isNaN(tuple4dToCheck.getX()) || isNaN(tuple4dToCheck.getY()) || isNaN(tuple4dToCheck.getZ()) || isNaN(tuple4dToCheck.getW()))
   return ObjectErrorType.CONTAINS_NaN;
 if (isInfinite(tuple4dToCheck.getX()) || isInfinite(tuple4dToCheck.getY()) || isInfinite(tuple4dToCheck.getZ()) || isInfinite(tuple4dToCheck.getW()))
   return ObjectErrorType.CONTAINS_INFINITY;
 return null;
}
origin: us.ihmc/IHMCRoboticsToolkit

public void update(Tuple4d value)
{
 update(value.getW());
 update(value.getX());
 update(value.getY());
 update(value.getZ());
}
origin: us.ihmc/IHMCRoboticsToolkit

public static Vector4d generateRandomVector4d(Random random, Tuple4d lowerBound, Tuple4d upperBound)
{
 Vector4d ret = new Vector4d();
 ret.setX(generateRandomDouble(random, lowerBound.getX(), upperBound.getX()));
 ret.setY(generateRandomDouble(random, lowerBound.getY(), upperBound.getY()));
 ret.setZ(generateRandomDouble(random, lowerBound.getZ(), upperBound.getZ()));
 ret.setW(generateRandomDouble(random, lowerBound.getW(), upperBound.getW()));
 return ret;
}
origin: us.ihmc/IHMCROSTools

public static Quaternion convertTuple4d(Tuple4d tuple)
{
 Quaternion quaternion = messageFactory.newFromType("geometry_msgs/Quaternion");
 if(tuple == null)
 {
   quaternion.setX(Double.NaN);
   quaternion.setY(Double.NaN);
   quaternion.setZ(Double.NaN);
   quaternion.setW(Double.NaN);
 }
 else
 {
   quaternion.setX(tuple.getX());
   quaternion.setY(tuple.getY());
   quaternion.setZ(tuple.getZ());
   quaternion.setW(tuple.getW());
 }
 return quaternion;
}
javax.vecmathTuple4dgetW

Javadoc

Get the w coordinate.

Popular methods of Tuple4d

  • getX
    Get the x coordinate.
  • getY
    Get the y coordinate.
  • getZ
    Get the z coordinate.
  • clamp
  • clampMax
  • clampMin
  • interpolate
  • scaleAdd
  • set
    Sets the value of this tuple to the specified xyzw coordinates.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Kernel (java.awt.image)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Top plugins for WebStorm
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