congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FrameVector3DReadOnly.lengthSquared
Code IndexAdd Tabnine to your IDE (free)

How to use
lengthSquared
method
in
us.ihmc.euclid.referenceFrame.interfaces.FrameVector3DReadOnly

Best Java code snippets using us.ihmc.euclid.referenceFrame.interfaces.FrameVector3DReadOnly.lengthSquared (Showing top 2 results out of 315)

origin: us.ihmc/mecano

/**
* Tests if the center of mass offset is negligible.
* 
* @return {@code true} if the center of mass offset can be ignored, {@code false} otherwise.
*/
default boolean isCenterOfMassOffsetZero()
{
 return getCenterOfMassOffset().lengthSquared() < COM_OFFSET_ZERO_EPSILON;
}
origin: us.ihmc/mecano

/**
* Calculates and returns the square of the magnitude of this vector.
* <p>
* length<sup>2</sup> = angular<sub>x</sub><sup>2</sup> + angular<sub>y</sub><sup>2</sup> +
* angular<sub>z</sub><sup>2</sup> + linear<sub>x</sub><sup>2</sup> +
* linear<sub>y</sub><sup>2</sup> + linear<sub>z</sub><sup>2</sup>
* </p>
* <p>
* This method is usually preferred over {@link #length()} when calculation speed matters and
* knowledge of the actual magnitude does not, i.e. when comparing several vectors by theirs
* magnitude.
* </p>
*
* @return the square of the magnitude of this vector.
*/
default double lengthSquared()
{
 return getAngularPart().lengthSquared() + getLinearPart().lengthSquared();
}
us.ihmc.euclid.referenceFrame.interfacesFrameVector3DReadOnlylengthSquared

Popular methods of FrameVector3DReadOnly

  • getReferenceFrame
  • checkReferenceFrameMatch
  • epsilonEquals
  • containsNaN
  • dot
  • equals
  • geometricallyEquals
  • get
  • getX
  • getY
  • getZ
  • length
  • getZ,
  • length

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • From CI to AI: The AI layer in your organization
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