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

How to use
Tuple4d
in
javax.vecmath

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

origin: javax.vecmath/vecmath

/**
 * @deprecated Use clamp(double,double,Tuple4d) instead
 */
public final void clamp(float min, float max, Tuple4d t) {
clamp((double)min, (double)max, t);
}
origin: javax.vecmath/vecmath

/**
 * @deprecated Use clampMax(double) instead
 */
public final void clampMax(float max) {
clampMax((double)max);
}
origin: javax.vecmath/vecmath

/**
 * @deprecated Use clampMin(double,Tuple4d) instead
 */
public final void clampMin(float min, Tuple4d t) {
clampMin((double)min, t);
}
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: javax.vecmath/vecmath

/**
 * @deprecated Use interpolate(Tuple4d,Tuple4d,double) instead
 */
public void interpolate(Tuple4d t1, Tuple4d t2, float alpha) {
interpolate(t1, t2, (double)alpha);
}
origin: javax.vecmath/vecmath

/**
 * @deprecated Use scaleAdd(double,Tuple4d) instead
 */  
public final void scaleAdd(float s, Tuple4d t1) {
scaleAdd((double)s, t1);
}
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: javax.vecmath/vecmath

/**
 * @deprecated Use interpolate(Tuple4d,double) instead
 */
public void interpolate(Tuple4d t1, float alpha) {
interpolate(t1, (double)alpha);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void update(Tuple4d value)
{
 update(value.getW());
 update(value.getX());
 update(value.getY());
 update(value.getZ());
}
origin: javax.vecmath/vecmath

/**
 * @deprecated Use clampMin(double) instead
 */
public final void clampMin(float min) {
clampMin((double)min);
}
origin: javax.vecmath/vecmath

/**
 * @deprecated Use clampMax(double,Tuple4d) instead
 */
public final void clampMax(float max, Tuple4d t) {
clampMax((double)max, t);
}
origin: javax.vecmath/vecmath

/**
 * @deprecated Use clamp(double,double) instead
 */
public final void clamp(float min, float max) {
clamp((double)min, (double)max);
}
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.vecmathTuple4d

Javadoc

A 4 element tuple represented by double precision floating point x,y,z,w coordinates.

Most used methods

  • getW
    Get the w coordinate.
  • 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
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
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