Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
dom/canvas-camera
CanvasCamera
Class CanvasCamera
Hierarchy
CanvasCamera
Index
Constructors
constructor
Properties
aspect
Ratio
distance
field
OfView
look
At
viewport
Methods
add
Listeners
apply
Scale
apply
Translation
begin
end
move
To
screen
ToWorld
update
Viewport
world
ToScreen
zoom
To
Constructors
constructor
new
Canvas
Camera
(
context
:
CanvasRenderingContext2D
, settings
:
CanvasCameraSettings
)
:
CanvasCamera
Parameters
context:
CanvasRenderingContext2D
settings:
CanvasCameraSettings
Returns
CanvasCamera
Properties
Private
Readonly
aspect
Ratio
aspect
Ratio
:
number
= ...
Private
distance
distance
:
number
= 1000
Private
Readonly
field
OfView
field
OfView
:
number
= ...
Private
Readonly
look
At
look
At
:
number
[]
= ...
Private
Readonly
viewport
viewport
:
CanvasCameraViewport
= ...
Methods
Private
add
Listeners
add
Listeners
(
)
:
void
Returns
void
Private
apply
Scale
apply
Scale
(
)
:
void
Returns
void
Private
apply
Translation
apply
Translation
(
)
:
void
Returns
void
begin
begin
(
)
:
void
Returns
void
end
end
(
)
:
void
Returns
void
move
To
move
To
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
screen
ToWorld
screen
ToWorld
(
x
:
number
, y
:
number
, obj
?:
SimpleVector2
)
:
SimpleVector2
Parameters
x:
number
y:
number
obj:
SimpleVector2
= ...
Returns
SimpleVector2
Private
update
Viewport
update
Viewport
(
)
:
void
Returns
void
world
ToScreen
world
ToScreen
(
x
:
number
, y
:
number
, obj
?:
SimpleVector2
)
:
SimpleVector2
Parameters
x:
number
y:
number
obj:
SimpleVector2
= ...
Returns
SimpleVector2
zoom
To
zoom
To
(
zoom
:
number
)
:
void
Parameters
zoom:
number
Returns
void
Modules
dom/canvas-
camera
Canvas
Camera
constructor
aspect
Ratio
distance
field
OfView
look
At
viewport
add
Listeners
apply
Scale
apply
Translation
begin
end
move
To
screen
ToWorld
update
Viewport
world
ToScreen
zoom
To
Canvas
Camera
Settings
Canvas
Camera
Viewport
Generated using
TypeDoc