func (c *Motion) logVectorHistory(frameHistory *[][]motionVector, currFrame *[]motionVector) {
	if len(*frameHistory) >= c.NumInspectFrames {
		*frameHistory = (*frameHistory)[1:] // slice off oldest frame
	}
	var f2 = make([]motionVector, len(*currFrame))
	copy(f2, *currFrame)
	*frameHistory = append(*frameHistory, f2)
}
// logVectorHistory logs currFrame into frameHistory
logVectorHistory logs currFrame into frameHistory
// logVectorHistory logs currFrame into frameHistory
func (c *Motion) logVectorHistory(frameHistory *[][]motionVector, currFrame *[]motionVector) {
	if len(*frameHistory) >= c.NumInspectFrames {
		*frameHistory = (*frameHistory)[1:] 
	}
	var f2 = make([]motionVector, len(*currFrame))
	copy(f2, *currFrame)
	*frameHistory = append(*frameHistory, f2)
}
func ( c * Motion ) logVectorHistory ( frameHistory * [ ] [ ] motionVector , currFrame * [ ] motionVector ) { if len ( * frameHistory ) >= c . NumInspectFrames { * frameHistory = ( * frameHistory ) [ 1 : ] } var f2 = make ( [ ] motionVector , len ( * currFrame ) ) copy ( f2 , * currFrame ) * frameHistory = append ( * frameHistory , f2 ) }
logVectorHistory logs currFrame into frameHistory
logVectorHistory logs currFrame into frameHistory
// slice off oldest frame