Home Reference Source
public class | source

Point

Extends:

TypedObject → Point

A Class that holds X and Y information

Constructor Summary

Public Constructor
public

constructor(x: *, y: *)

Member Summary

Public Members
public

The x co-ordinate of this point

public

The y co-ordinate of this point

Method Summary

Public Methods
public
public

getX(): *

public

getY(): *

public

setX(val: *)

public

setY(val: *)

Inherited Summary

From class TypedObject
public

typeCache: {}

public
public

Returns a list of strings that represent the object hierarchy for this object.

public

Returns true if the class name to check is in the list of class names defined for this class.

Public Constructors

public constructor(x: *, y: *) source

Override:

TypedObject#constructor

Params:

NameTypeAttributeDescription
x *
y *

Public Members

public x: Number source

The x co-ordinate of this point

public y: Number source

The y co-ordinate of this point

Public Methods

public getClassNames(): string[] source

Returns a list of strings that represent the object hierarchy for this object.

Override:

TypedObject#getClassNames

Return:

string[]

public getX(): * source

Return:

*

public getY(): * source

Return:

*

public setX(val: *) source

Params:

NameTypeAttributeDescription
val *

public setY(val: *) source

Params:

NameTypeAttributeDescription
val *