Gamalto

Fork me on GitHub

Object Circle Overview

Gamalto. Circle

new Gamalto.Circle(x, y, radius)

Creates a circle shape.

Parameters
Name Type Description
x number

Horizontal position of the circle center.

y number

Vertical position of the circle center.

radius number

Radius of the circle.

Extends
Example
// Getting an object instance
var circle = new Gamalto.Circle(100, 100, 50);

Members

origin :Gamalto.IPoint

inherited

Gets of sets the origin of the shape.

Inherited From

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

clone() Gamalto.Circle

override

Creates a clone of the current object.

Overrides
Returns
  • Copy of the object.

equals(that) boolean

Determines if a circle is equal to the current circle.

Parameters
Name Type Description
that Gamalto.Circle

Circle to test.

Returns
  • True if the two circles are equal.

intersects(that) boolean

Determines if an circle intersects with the current circle.

Parameters
Name Type Description
that Gamalto.Circle

Circle to test.

Returns
  • True if the two circles intersect.

pointInShape(x, y) boolean

override

Determines if a point lies inside the shape.

Parameters
Name Type Description
x number

Horizontal position of the point to test.

y number

Vertical position of the point to test.

Overrides
Returns
  • True if the point lies inside the shape.

toBox() Gamalto.Box

override

Gets the bounding box of the shape.

Overrides
Returns
  • Bounding box of the shape.

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

translate(vec)

inherited abstract

Translates the shape by the vector.

Parameters
Name Type Description
vec Gamalto.IPoint

Vector to use for the translation.

Inherited From
Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)