lib/complexTypes/RelativePoint.js
function RelativePoint(relativePointDict){
  if(!(this instanceof RelativePoint))
    return new RelativePoint(relativePointDict)

  relativePointDict = relativePointDict || {}

  // Check relativePointDict has the required fields
  // 
  // checkType('float', 'relativePointDict.x', relativePointDict.x, {required: true});
  //  
  // checkType('float', 'relativePointDict.y', relativePointDict.y, {required: true});
  //  

  // Init parent class
  RelativePoint.super_.call(this, relativePointDict)

  // Set object properties
  Object.defineProperties(this, {
    x: {
      writable: true,
      enumerable: true,
      value: relativePointDict.x
    },
    y: {
      writable: true,
      enumerable: true,
      value: relativePointDict.y
    }
  })
}
function RelativePoint(relativePointDict){
  if(!(this instanceof RelativePoint))
    return new RelativePoint(relativePointDict)

  relativePointDict = relativePointDict || {}

  // Check relativePointDict has the required fields
  // 
  // checkType('float', 'relativePointDict.x', relativePointDict.x, {required: true});
  //  
  // checkType('float', 'relativePointDict.y', relativePointDict.y, {required: true});
  //  

  // Init parent class
  RelativePoint.super_.call(this, relativePointDict)

  // Set object properties
  Object.defineProperties(this, {
    x: {
      writable: true,
      enumerable: true,
      value: relativePointDict.x
    },
    y: {
      writable: true,
      enumerable: true,
      value: relativePointDict.y
    }
  })
}
function RelativePoint ( relativePointDict ) { if ( ! ( this instanceof RelativePoint ) ) return new RelativePoint ( relativePointDict ) relativePointDict = relativePointDict || { } // Check relativePointDict has the required fields //  // checkType('float', 'relativePointDict.x', relativePointDict.x, {required: true}); //   // checkType('float', 'relativePointDict.y', relativePointDict.y, {required: true}); //   // Init parent class RelativePoint . super_ . call ( this , relativePointDict ) // Set object properties Object . defineProperties ( this , { x : { writable : true , enumerable : true , value : relativePointDict . x } , y : { writable : true , enumerable : true , value : relativePointDict . y } } ) }
Relative points in a physical screen, values are a percentage relative to the

@constructor module:crowddetector/complexTypes.RelativePoint

@property {external:Number} x
Percentage relative to the image width to calculate the X coordinate of the
point [0..1]
@property {external:Number} y
Percentage relative to the image height to calculate the Y coordinate of the
Relative points in a physical screen values are a percentage relative to the