Documentation API of the 'javax.measure.VectorMeasure' Java class
VectorMeasure
javax.measure

Class VectorMeasure<Q extends Quantity>

  • All Implemented Interfaces:
    Serializable, Comparable<Measurable<Q>>, Measurable<Q>


    public abstract class VectorMeasure<Q extends Quantity>extends Measure<double[],Q>

    This class represents a measurement vector of two or more dimensions. For example:

             VectorMeasure<Length> dimension = VectorMeasure.valueOf(12.0, 30.0, 40.0, MILLIMETER);         VectorMeasure<Velocity> v2d = VectorMeasure.valueOf(-2.2, -3.0, KNOTS);         VectorMeasure<ElectricCurrent> c2d = VectorMeasure.valueOf(-7.3, 3.5, NANOAMPERE);     

    Subclasses may provide fixed dimensions specializations:

             class Velocity2D extends VectorMeasure<Velocity> {              public Velocity2D(double x, double y, Unit<Velocity> unit) {                  ...              }         }     

    Measurement vectors may use compound units:

         VectorMeasure<Angle> latLong = VectorMeasure.valueOf(12.345, 22.23, DEGREE_ANGLE);     Unit<Angle> HOUR_MINUTE_SECOND_ANGLE = DEGREE_ANGLE.compound(MINUTE_ANGLE).compound(SECOND_ANGLE);     System.out.println(latLong.to(HOUR_MINUTE_SECOND_ANGLE));          > [12\xc2\xb019\'42", 22\xc2\xb012\'48"] 

    Instances of this class (and sub-classes) are immutable.

    See Also:
    Serialized Form

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.