Your Docusaurus site did not load properly.

A very common reason is a wrong site baseUrl configuration.

Current configured baseUrl = / (default value)

We suggest trying baseUrl = /docs/math2d/api-reference/api-utils-math/

Geometry Math

math2d.utils.math에서 제공하는 기하 계산 함수 목록입니다.

기하계산 함수 목록

이름설명반환타입인자
인자 타입설명

getCenter

두 점 사이의 중점PointPoint
Point

getSlope

두 점 사이의 기울기numberPoint
Point

getAngle

두 점 사이의 각도numberPoint
Point

getDistance

두 점 사이의 거리numberPoint
Point

getDistanceFromLine

점과 직선 사이의 거리numberPoint
Line

getCircleByThreePoints

외접원의 중심과 반지름CirclePoint
Point
Point

getIntersectionsOfLineAndLine

직선과 직선의 교점Point[]Line
Line

getIntersectionsOfCircleAndLine

원과 직선의 교점Point[]Circle
Line

getIntersectionsOfCircleAndCircle

원과 원의 교점Point[]Circle
Circle

isPointInTriangle

점의 삼각형 내부 존재 여부booleanPoint
Triangle

isPointInPolygon

점의 다각형 내부 존재 여부booleanPoint
Polygon

isPolygonsOverlapped

두 다각형의 중첩 여부booleanPolygon
Polygon

isCollinear

세 점이 한 직선 위에 존재 여부booleanPoint
Point
Point
Accuracy

isPerpendicular

두 직선의 수직 여부booleanLine
Line
Accuracy

isParallel

두 직선의 평행 여부booleanLine
Line
Accuracy

mod

(양수로) 나머지 연산numbernumber피연산자1
number피연산자2

round

소숫점 아래 자릿수 지정 반올림numbernumber대상 수
number소숫점 아래 자리수

radianToDegree

각도 단위 변환 (rad=>deg)numbernumber각도(rad)

degreeToRadian

각도 단위 변환 (deg=>rad)numbernumber각도(deg)

Reference Types

Point

[number, number]

점의 x좌표, y좌표

Line

[Point, Point]

선 위의 두 점의 각각 x, y좌표

Circle

[Point, number]

원의 중심의 x, y좌표와 반지름

Triangle

[Point, Point, Point]

삼각형의 세 꼭짓점의 좌표

Polygon

Array<Point>

다각형의 각 꼭짓점의 좌표

Accuracy

number | undefined [default=0.0001]

오차 허용범위.