Constructor
new Oval(radiusX, radiusY, xopt, yopt)
- Source:
 - Implements:
 
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
radiusX | 
            
            number | The radius of the oval in the x direction. | ||
radiusY | 
            
            number | The radius of the oval in the y direction. | ||
x | 
            
            number | 
                
                    <optional> | 
            
            
                
                
                    0
                
                 | 
            
            The x offset of the oval. | 
y | 
            
            number | 
                
                    <optional> | 
            
            
                
                
                    0
                
                 | 
            
            The y offset of the oval. | 
Members
radiusX :number
- Description:
 - The radius of the circle in the x direction.
 
- Source:
 
    The radius of the circle in the x direction.
    Type:
- number
 
radiusY :number
- Description:
 - The radius of the circle in the y direction.
 
- Source:
 
    The radius of the circle in the y direction.
    Type:
- number
 
x :number
- Description:
 - The x coordinate of the centre of the oval.
 
- Source:
 
    The x coordinate of the centre of the oval.
    Type:
- number
 
y :number
- Description:
 - The y coordinate of the centre of the oval.
 
- Source:
 
    The y coordinate of the centre of the oval.
    Type:
- number
 
Methods
contains(point) → {boolean}
- Description:
 - Determines if a point is inside the oval.
 
- Source:
 - Implements:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
point | 
            
            module:shared.Point2D | The point to test. | 
Returns:
    true if the point is inside the oval, false otherwise.
- Type
 - boolean