congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Tuple2d.getY
Code IndexAdd Tabnine to your IDE (free)

How to use
getY
method
in
javax.vecmath.Tuple2d

Best Java code snippets using javax.vecmath.Tuple2d.getY (Showing top 20 results out of 315)

origin: us.ihmc/IHMCRoboticsToolkit

public final double getY()
{
 return tuple.getY();
}
origin: us.ihmc/IHMCRoboticsToolkit

/** FramePoint2d <p/> A normal point2d associated with a specific reference frame. */
public FramePoint2d(ReferenceFrame referenceFrame, Tuple2d position, String name)
{
 this(referenceFrame, position.getX(), position.getY(), name);
}
origin: us.ihmc/IHMCRoboticsToolkit

/** FrameVector2d <p/> A normal vector2d associated with a specific reference frame. */
public FrameVector2d(ReferenceFrame referenceFrame, Tuple2d tuple)
{
 this(referenceFrame, tuple.getX(), tuple.getY());
}
origin: us.ihmc/IHMCRoboticsToolkit

/** FrameVector2d <p/> A normal vector2d associated with a specific reference frame. */
public FrameVector2d(FrameTuple2d<?, ?> frameTuple2d)
{
 this(frameTuple2d.referenceFrame, frameTuple2d.tuple.getX(), frameTuple2d.tuple.getY(), frameTuple2d.name);
}
origin: us.ihmc/IHMCRoboticsToolkit

/** FramePoint2d <p/> A normal point2d associated with a specific reference frame. */
public FramePoint2d(FrameTuple2d<?, ?> frameTuple2d)
{
 this(frameTuple2d.referenceFrame, frameTuple2d.tuple.getX(), frameTuple2d.tuple.getY(), frameTuple2d.name);
}
origin: us.ihmc/IHMCRoboticsToolkit

public final boolean containsNaN()
{
 return Double.isNaN(tuple.getX()) || Double.isNaN(tuple.getY());
}
origin: us.ihmc/IHMCRoboticsToolkit

/** FramePoint2d <p/> A normal point2d associated with a specific reference frame. */
public FramePoint2d(ReferenceFrame referenceFrame, Tuple2d position)
{
 this(referenceFrame, position.getX(), position.getY(), null);
}
origin: us.ihmc/IHMCRoboticsToolkit

public final double[] toArray()
{
 return new double[] { tuple.getX(), tuple.getY() };
}
origin: us.ihmc/IHMCRoboticsToolkit

public double distanceFromZero()
{
 return Math.sqrt(tuple.getX() * tuple.getX() + tuple.getY() * tuple.getY());
}
origin: us.ihmc/CommonWalkingControlModules

@Override
public List<FramePoint> getContactPointsCopy()
{
 List<FramePoint> ret = new ArrayList<FramePoint>(contactPoints.size());
 for (int i = 0; i < contactPoints.size(); i++)
 {
   Tuple2d point = contactPoints.get(i);
   ret.add(new FramePoint(soleFrame, point.getX(), point.getY(), 0.0));
 }
 return ret;
}
origin: us.ihmc/IHMCCommunication

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

/**
* Pack this tuple2d in tuple3fToPack and tuple3fToPack.z = 0.0.
* @param tuple3fToPack {@code Tuple3f}
*/
public final void get(Tuple3f tuple3fToPack)
{
 tuple3fToPack.set((float) tuple.getX(), (float) tuple.getY(), 0.0f);
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Pack this tuple2d in tuple3dToPack and tuple3dToPack.z = 0.0.
* @param tuple3dToPack {@code Tuple3d}
*/
public final void get(Tuple3d tuple3dToPack)
{
 tuple3dToPack.set(tuple.getX(), tuple.getY(), 0.0);
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Sets the value of this tuple to the scalar multiplication of tuple1 and then adds the scalar multiplication of tuple2 (this = scaleFactor1 * tuple1 + scaleFactor2 * tuple2).
*
* @param scaleFactor1 double
* @param frameTuple1 Tuple2d
* @param scaleFactor2 double
* @param frameTuple2 Tuple2d
*/
public final void scaleAdd(double scaleFactor1, Tuple2d tuple1, double scaleFactor2, Tuple2d tuple2)
{
 tuple.setX(scaleFactor1 * tuple1.getX() + scaleFactor2 * tuple2.getX());
 tuple.setY(scaleFactor1 * tuple1.getY() + scaleFactor2 * tuple2.getY());
}
origin: us.ihmc/IHMCRoboticsToolkit

public final void add(double dx, double dy)
{
 tuple.setX(tuple.getX() + dx);
 tuple.setY(tuple.getY() + dy);
}
origin: us.ihmc/IHMCRoboticsToolkit

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

public final void scale(double scaleXFactor, double scaleYFactor)
{
 tuple.setX(tuple.getX() * scaleXFactor);
 tuple.setY(tuple.getY() * scaleYFactor);
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void setDenseMatrixFromTuple2d(DenseMatrix64F matrixToPack, Tuple2d tuple, int startRow, int startColumn)
{
 matrixToPack.set(startRow + 0, startColumn, tuple.getX());
 matrixToPack.set(startRow + 1, startColumn, tuple.getY());
}
origin: us.ihmc/IHMCRoboticsToolkit

public final void sub(double dx, double dy)
{
 tuple.setX(tuple.getX() - dx);
 tuple.setY(tuple.getY() - dy);
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Set the x and y components of this frameTuple to tuple2d.x and tuple2d.y respectively, and sets the z component to zero.
* @param tuple2d
*/
public void setXY(Tuple2d tuple2d)
{
 this.tuple.setX(tuple2d.getX());
 this.tuple.setY(tuple2d.getY());
 this.tuple.setZ(0.0);
}
javax.vecmathTuple2dgetY

Javadoc

Get the y coordinate.

Popular methods of Tuple2d

  • getX
    Get the x coordinate.
  • epsilonEquals
    Returns true if the L-infinite distance between this tuple and tuple t1 is less than or equal to the
  • add
    Sets the value of this tuple to the vector sum of tuples t1 and t2.
  • clamp
    Clamps the tuple parameter to the range [low, high] and places the values into this tuple.
  • interpolate
    Linearly interpolates between tuples t1 and t2 and places the result into this tuple: this = (1-alph
  • negate
    Sets the value of this tuple to the negation of tuple t1.
  • scale
    Sets the value of this tuple to the scalar multiplication of tuple t1.
  • scaleAdd
    Sets the value of this tuple to the scalar multiplication of tuple t1 and then adds tuple t2 (this =
  • set
    Sets the value of this tuple from the 2 values specified in the array.
  • setX
    Set the x coordinate.
  • setY
    Set the y coordinate.
  • sub
    Sets the value of this tuple to the vector difference of tuple t1 and t2 (this = t1 - t2).
  • setY,
  • sub

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JFrame (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • PhpStorm for WordPress
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