BimCT SDK / WebGL2 Viewer
BimCT.io
Playground
Converter API
Live Demo
Preparing search index...
index
Point2D
Class Point2D
Index
Constructors
constructor
Properties
x
y
Accessors
direction
direction
Degrees
Methods
distance
add
scale
subtract
equals
angle
To
angle
To
Degrees
to
Length
to
Normalized
midpoint
clone
Constructors
constructor
new
Point2D
(
x
:
number
,
y
:
number
)
:
Point2D
Parameters
x
:
number
y
:
number
Returns
Point2D
Properties
x
x
:
number
y
y
:
number
Accessors
direction
get
direction
()
:
number
Returns
number
direction
Degrees
get
directionDegrees
()
:
number
Returns
number
Methods
distance
distance
(
other
:
Point2D
)
:
number
Parameters
other
:
Point2D
Returns
number
add
add
(
other
:
Point2D
)
:
Point2D
Parameters
other
:
Point2D
Returns
Point2D
scale
scale
(
factor
:
number
)
:
Point2D
Parameters
factor
:
number
Returns
Point2D
subtract
subtract
(
other
:
Point2D
)
:
Point2D
Parameters
other
:
Point2D
Returns
Point2D
equals
equals
(
other
:
Point2D
)
:
boolean
Parameters
other
:
Point2D
Returns
boolean
angle
To
angleTo
(
other
:
Point2D
)
:
number
Parameters
other
:
Point2D
Returns
number
angle
To
Degrees
angleToDegrees
(
other
:
Point2D
)
:
number
Parameters
other
:
Point2D
Returns
number
to
Length
toLength
(
targetLength
:
number
)
:
Point2D
Parameters
targetLength
:
number
Returns
Point2D
to
Normalized
toNormalized
()
:
Point2D
Returns a normalized (unit length) vector in the same direction as this point.
Returns
Point2D
midpoint
midpoint
(
other
:
Point2D
)
:
Point2D
Parameters
other
:
Point2D
Returns
Point2D
clone
clone
()
:
Point2D
Returns
Point2D
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
x
y
Accessors
direction
direction
Degrees
Methods
distance
add
scale
subtract
equals
angle
To
angle
To
Degrees
to
Length
to
Normalized
midpoint
clone
BimCT.io
Playground
Converter API
Live Demo
BimCT SDK / WebGL2 Viewer
Loading...
Returns a normalized (unit length) vector in the same direction as this point.