RingMat
Hierarchy
↳ RingMat
Index
Properties
- blueLineY
- centerX
- centerY
- greenLineY
- maxX
- maxY
- minX
- minY
- radius
- startPointBlueSideX
- startPointBlueSideY
- startPointGreenSideX
- startPointGreenSideY
Methods
Properties
Static
Readonly
blueLineY
▪ blueLineY: 88 = 88
Defined in id/position/ringMat.ts:13
Static
Readonly
centerX
▪ centerX: 250 = 250
Defined in id/position/ringMat.ts:8
Static
Readonly
centerY
▪ centerY: 250 = 250
Defined in id/position/ringMat.ts:9
Static
Readonly
greenLineY
▪ greenLineY: 410 = 410
Defined in id/position/ringMat.ts:14
Static
Readonly
maxX
▪ maxX: 455 = 455
Defined in id/position/ringMat.ts:6
Static
Readonly
maxY
▪ maxY: 455 = 455
Defined in id/position/ringMat.ts:7
Static
Readonly
minX
▪ minX: 45 = 45
Defined in id/position/ringMat.ts:4
Static
Readonly
minY
▪ minY: 45 = 45
Defined in id/position/ringMat.ts:5
Static
Readonly
radius
▪ radius: 190 = 190
Defined in id/position/ringMat.ts:12
Static
Readonly
startPointBlueSideX
▪ startPointBlueSideX: 250 = 250
Defined in id/position/ringMat.ts:15
Static
Readonly
startPointBlueSideY
▪ startPointBlueSideY: 198 = 198
Defined in id/position/ringMat.ts:16
Static
Readonly
startPointGreenSideX
▪ startPointGreenSideX: 250 = 250
Defined in id/position/ringMat.ts:17
Static
Readonly
startPointGreenSideY
▪ startPointGreenSideY: 300 = 300
Defined in id/position/ringMat.ts:18
Methods
Static
isInFrontOfBlueLine
▸ isInFrontOfBlueLine(y
: number): boolean
Defined in id/position/ringMat.ts:47
Specified coordinate is in front of the blue line of toio Collection ring mat or not.
Parameters:
Name | Type | Description |
---|---|---|
y | number | Y coordinate of checking target point. |
Returns: boolean
true iff specified (x, y) is in front of the blue line.
Static
isInFrontOfGreenLine
▸ isInFrontOfGreenLine(y
: number): boolean
Defined in id/position/ringMat.ts:63
Specified coordinate is in front of the green line of toio Collection ring mat or not.
Parameters:
Name | Type | Description |
---|---|---|
y | number | Y coordinate of checking target point. |
Returns: boolean
true iff specified (x, y) is in front of the green line.
Static
isInsideCircle
▸ isInsideCircle(x
: number, y
: number): boolean
Defined in id/position/ringMat.ts:28
Specified coordinate is inside of the circle of toio Collection ring mat or not.
Parameters:
Name | Type | Description |
---|---|---|
x | number | X coordinate of checking target point. |
y | number | Y coordinate of checking target point. |
Returns: boolean
true iff specified (x, y) is inside of the circle.
Static
isOnMat
▸ isOnMat(x
: number | undefined, y
: number | undefined): boolean
Defined in id/position/mat.ts:17
Specified coordinate is on the mat or not.
Parameters:
Name | Type | Description |
---|---|---|
x | number | undefined | X coordinate of checking target point. |
y | number | undefined | Y coordinate of checking target point. |
Returns: boolean
true iff specified (x, y) is on this mat.