Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/math
Angle
Class Angle
Hierarchy
Angle
DegAngle
RadAngle
GradAngle
TurnAngle
Implements
Interpolate
<
Angle
>
HashCode
Equivalent
Compare
Debug
Index
Constructors
constructor
Properties
units
value
Methods
combine
compare
To
debug
deg
deg
Value
divide
equals
equivalent
To
grad
grad
Value
hash
Code
interpolate
To
is
Defined
minus
negative
norm
plus
rad
rad
Value
times
to
to
Css
Value
to
String
to
Value
turn
turn
Value
create
deg
form
from
Any
from
Css
Value
from
Value
grad
is
Any
parse
rad
turn
zero
Constructors
constructor
new
Angle
(
)
:
Angle
Returns
Angle
Properties
Readonly
Abstract
units
units
:
AngleUnits
Readonly
Abstract
value
value
:
number
Methods
combine
combine
(
that
:
AnyAngle
, scalar
?:
number
, units
?:
AngleUnits
)
:
Angle
Parameters
that:
AnyAngle
Optional
scalar:
number
Optional
units:
AngleUnits
Returns
Angle
Abstract
compare
To
compare
To
(
that
:
unknown
)
:
number
Parameters
that:
unknown
Returns
number
Abstract
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
deg
deg
(
)
:
DegAngle
Returns
DegAngle
Abstract
deg
Value
deg
Value
(
)
:
number
Returns
number
divide
divide
(
scalar
:
number
, units
?:
AngleUnits
)
:
Angle
Parameters
scalar:
number
Optional
units:
AngleUnits
Returns
Angle
Abstract
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
Abstract
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
grad
grad
(
)
:
GradAngle
Returns
GradAngle
Abstract
grad
Value
grad
Value
(
)
:
number
Returns
number
Abstract
hash
Code
hash
Code
(
)
:
number
Returns
number
interpolate
To
interpolate
To
(
that
:
Angle
)
:
Interpolator
<
Angle
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
Angle
>
Parameters
that:
Angle
Returns
Interpolator
<
Angle
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
Angle
>
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
minus
minus
(
that
:
AnyAngle
, units
?:
AngleUnits
)
:
Angle
Parameters
that:
AnyAngle
Optional
units:
AngleUnits
Returns
Angle
negative
negative
(
units
?:
AngleUnits
)
:
Angle
Parameters
Optional
units:
AngleUnits
Returns
Angle
norm
norm
(
total
:
AnyAngle
, units
?:
AngleUnits
)
:
Angle
Parameters
total:
AnyAngle
Optional
units:
AngleUnits
Returns
Angle
plus
plus
(
that
:
AnyAngle
, units
?:
AngleUnits
)
:
Angle
Parameters
that:
AnyAngle
Optional
units:
AngleUnits
Returns
Angle
rad
rad
(
)
:
RadAngle
Returns
RadAngle
Abstract
rad
Value
rad
Value
(
)
:
number
Returns
number
times
times
(
scalar
:
number
, units
?:
AngleUnits
)
:
Angle
Parameters
scalar:
number
Optional
units:
AngleUnits
Returns
Angle
to
to
(
units
:
AngleUnits
)
:
Angle
Parameters
units:
AngleUnits
Returns
Angle
Abstract
to
Css
Value
to
Css
Value
(
)
:
null
|
CSSUnitValue
Returns
null
|
CSSUnitValue
Abstract
to
String
to
String
(
)
:
string
Returns
string
to
Value
to
Value
(
)
:
Value
to
Value
(
units
:
AngleUnits
)
:
number
Returns
Value
Parameters
units:
AngleUnits
Returns
number
turn
turn
(
)
:
TurnAngle
Returns
TurnAngle
Abstract
turn
Value
turn
Value
(
)
:
number
Returns
number
Static
create
create
(
value
:
number
, units
?:
AngleUnits
)
:
Angle
Parameters
value:
number
Optional
units:
AngleUnits
Returns
Angle
Static
deg
deg
(
value
:
number
)
:
DegAngle
Parameters
value:
number
Returns
DegAngle
Static
form
form
(
)
:
Form
<
Angle
,
AnyAngle
>
Returns
Form
<
Angle
,
AnyAngle
>
Static
from
Any
from
Any
(
value
:
AnyAngle
, defaultUnits
?:
AngleUnits
)
:
Angle
Parameters
value:
AnyAngle
Optional
defaultUnits:
AngleUnits
Returns
Angle
Static
from
Css
Value
from
Css
Value
(
value
:
CSSStyleValue
)
:
Angle
Parameters
value:
CSSStyleValue
Returns
Angle
Static
from
Value
from
Value
(
value
:
Value
)
:
null
|
Angle
Parameters
value:
Value
Returns
null
|
Angle
Static
grad
grad
(
value
:
number
)
:
GradAngle
Parameters
value:
number
Returns
GradAngle
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyAngle
Parameters
value:
unknown
Returns
value
is
AnyAngle
Static
parse
parse
(
string
:
string
, defaultUnits
?:
AngleUnits
)
:
Angle
Parameters
string:
string
Optional
defaultUnits:
AngleUnits
Returns
Angle
Static
rad
rad
(
value
:
number
)
:
RadAngle
Parameters
value:
number
Returns
RadAngle
Static
turn
turn
(
value
:
number
)
:
TurnAngle
Parameters
value:
number
Returns
TurnAngle
Static
zero
zero
(
units
?:
AngleUnits
)
:
Angle
Parameters
Optional
units:
AngleUnits
Returns
Angle
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
Angle
constructor
units
value
combine
compare
To
debug
deg
deg
Value
divide
equals
equivalent
To
grad
grad
Value
hash
Code
interpolate
To
is
Defined
minus
negative
norm
plus
rad
rad
Value
times
to
to
Css
Value
to
String
to
Value
turn
turn
Value
create
deg
form
from
Any
from
Css
Value
from
Value
grad
is
Any
parse
rad
turn
zero
Generated using
TypeDoc