Taos API Reference
    Preparing search index...

    Class SampledPositionProperty

    A position defined by timestamped ECEF samples, interpolated between them — the analog of CesiumJS SampledPositionProperty. Samples are kept sorted; getValueEcef clamps to the first/last sample outside the sampled range (so a tracked object holds at the ends rather than vanishing). Linear and Lagrange (configurable degree) interpolation.

    Implements

    Index

    Constructors

    Properties

    algorithm: InterpolationAlgorithm = 'LINEAR'

    Interpolation algorithm (default LINEAR).

    degree: number = 1

    Lagrange interpolation degree (uses degree+1 control points). Default 1 (= linear).

    Accessors

    Methods

    • Add one ECEF sample at epoch-seconds t (kept sorted; replaces an exact-time dup).

      Parameters

      Returns this

    • Add a sample from a geodetic position (degrees + meters).

      Parameters

      • t: number
      • lonDeg: number
      • latDeg: number
      • height: number = 0

      Returns this