Type Alias PointRelationResult

PointRelationResult: {
    angle: number;
    average: Point;
    centroid: Point;
    distanceFromLast: number;
    distanceFromStart: number;
    speed: number;
}

Type declaration

  • Readonlyangle: number

    Angle from start

  • Readonlyaverage: Point

    Average of all points seen This is calculated by summing x,y and dividing by total points

  • Readonlycentroid: Point

    Center point from start

  • ReadonlydistanceFromLast: number

    Distance from last compared point

  • ReadonlydistanceFromStart: number

    Distance from start

  • Readonlyspeed: number

    Speed. Distance/millisecond from one sample to the next.