Class: Point
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
new Point(x?
, y?
)
Parameters
Name | Type |
---|---|
x? | number | IPointData |
y? | number |
Defined in
leafer/packages/math/src/Point.ts:9
Properties
x
x: number
Implementation of
Defined in
leafer/packages/math/src/Point.ts:6
y
y: number
Implementation of
Defined in
leafer/packages/math/src/Point.ts:7
Methods
set
set(x?
, y?
): void
Parameters
Name | Type |
---|---|
x? | number |
y? | number |
Returns
void
Implementation of
Defined in
leafer/packages/math/src/Point.ts:13
copy
copy(point
): IPoint
Parameters
Name | Type |
---|---|
point | IPointData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Point.ts:17
clone
clone(): IPoint
Returns
Implementation of
Defined in
leafer/packages/math/src/Point.ts:22
rotate
rotate(angle
, center?
): IPoint
Parameters
Name | Type |
---|---|
angle | number |
center? | IPointData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Point.ts:26
toInnerOf
toInnerOf(matrix
, to?
): IPoint
Parameters
Name | Type |
---|---|
matrix | IMatrixData |
to? | IPointData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Point.ts:32
toOuterOf
toOuterOf(matrix
, to?
): IPoint
Parameters
Name | Type |
---|---|
matrix | IMatrixData |
to? | IPointData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Point.ts:37
getCenter
getCenter(to
): IPointData
Parameters
Name | Type |
---|---|
to | IPointData |
Returns
Implementation of
Defined in
leafer/packages/math/src/Point.ts:42
getDistance
getDistance(to
): number
Parameters
Name | Type |
---|---|
to | IPointData |
Returns
number
Implementation of
Defined in
leafer/packages/math/src/Point.ts:46
getAngle
getAngle(to
): number
Parameters
Name | Type |
---|---|
to | IPointData |
Returns
number
Implementation of
Defined in
leafer/packages/math/src/Point.ts:50
getAtan2
getAtan2(to
): number
Parameters
Name | Type |
---|---|
to | IPointData |
Returns
number
Implementation of
Defined in
leafer/packages/math/src/Point.ts:54
reset
reset(): void
Returns
void