Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/math
VectorR2
Class VectorR2
Hierarchy
VectorR2
Implements
HashCode
Debug
Index
Constructors
constructor
Accessors
x
y
Methods
can
Equal
debug
equals
hash
Code
minus
opposite
plus
times
to
Any
to
String
from
Any
of
zero
Constructors
constructor
new
Vector
R2
(
x
:
number
, y
:
number
)
:
VectorR2
Parameters
x:
number
y:
number
Returns
VectorR2
Accessors
x
get
x
(
)
:
number
Returns
number
y
get
y
(
)
:
number
Returns
number
Methods
Protected
can
Equal
can
Equal
(
that
:
VectorR2
)
:
boolean
Parameters
that:
VectorR2
Returns
boolean
debug
debug
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
minus
minus
(
that
:
AnyVectorR2
)
:
VectorR2
Parameters
that:
AnyVectorR2
Returns
VectorR2
opposite
opposite
(
)
:
VectorR2
Returns
VectorR2
plus
plus
(
that
:
AnyVectorR2
)
:
VectorR2
Parameters
that:
AnyVectorR2
Returns
VectorR2
times
times
(
scalar
:
number
)
:
VectorR2
Parameters
scalar:
number
Returns
VectorR2
to
Any
to
Any
(
)
:
VectorR2Init
Returns
VectorR2Init
to
String
to
String
(
)
:
string
Returns
string
Static
from
Any
from
Any
(
vector
:
AnyVectorR2
)
:
VectorR2
Parameters
vector:
AnyVectorR2
Returns
VectorR2
Static
of
of
(
x
:
number
, y
:
number
)
:
VectorR2
Parameters
x:
number
y:
number
Returns
VectorR2
Static
zero
zero
(
)
:
VectorR2
Returns
VectorR2
Globals
@swim/core
@swim/codec
@swim/collections
@swim/dataflow
@swim/math
@swim/recon
@swim/streamlet
@swim/structure
@swim/time
@swim/uri
@swim/util
@swim/mesh
@swim/ui
@swim/ux
@swim/web
Box
R2
Circle
R2
Point
R2
R2
Shape
Segment
R2
Vector
R2
constructor
x
y
can
Equal
debug
equals
hash
Code
minus
opposite
plus
times
to
Any
to
String
from
Any
of
zero
Box
R2Init
Circle
R2Init
Point
R2Init
R2
Function
R2
Operator
Segment
R2Init
Shape
Vector
R2Init
Any
Box
R2
Any
Circle
R2
Any
Point
R2
Any
R2Shape
Any
Segment
R2
Any
Shape
Any
Vector
R2
Shape