Preparing search index...
The search index is not available
TypeSpriteJS Game Engine - API
TypeSpriteJS Game Engine - API
CollisionLine
Class CollisionLine
Hierarchy
CollisionShape
CollisionLine
Index
Constructors
constructor
Properties
x
x2
y
y2
Accessors
bottom
left
right
shape
Type
top
Methods
copy
set
Values
Constructors
constructor
new
Collision
Line
(
)
:
CollisionLine
Returns
CollisionLine
Properties
x
x
:
number
= 0
x2
x2
:
number
= 0
y
y
:
number
= 0
y2
y2
:
number
= 0
Accessors
bottom
get
bottom
(
)
:
number
Returns
number
left
get
left
(
)
:
number
Returns
number
right
get
right
(
)
:
number
Returns
number
shape
Type
get
shapeType
(
)
:
ShapeType
Returns
ShapeType
top
get
top
(
)
:
number
Returns
number
Methods
copy
copy
(
)
:
CollisionLine
Returns
CollisionLine
set
Values
set
Values
(
x
:
number
, y
:
number
, x2
:
number
, y2
:
number
)
:
CollisionLine
Parameters
x:
number
y:
number
x2:
number
y2:
number
Returns
CollisionLine
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Type
SpriteJS
Game
Engine -
API
Collision
Line
constructor
x
x2
y
y2
bottom
left
right
shape
Type
top
copy
set
Values
Generated using
TypeDoc