GeOnDT GeOnDT for JS

Global

Type Definitions

GeOnDT API의 색상 옵션에 전달할 수 있는 입력 타입입니다. Three.js의 ColorRepresentation과 동일하며 다음 값을 사용할 수 있습니다.

  • THREE.Color: 이미 생성된 색상 객체
  • number: 0xRRGGBB 형식의 16진수 색상값
  • string: '#RRGGBB', '#RGB', CSS 색상 이름, rgb(...), hsl(...) 형식

문자열 예시로 '#ff6600', '#f60', 'orange', 'rgb(255, 102, 0)', 'hsl(24, 100%, 50%)'을 사용할 수 있습니다. rgba(...)와 hsla(...)도 색상 자체는 해석되지만 알파 값은 무시되므로, 투명도는 각 API가 제공하는 opacity 등의 별도 옵션으로 설정해야 합니다.

Example

지원하는 색상 입력 형식

const colorObject = new THREE.Color(0xff6600);

const colors = {
  object: colorObject,
  number: 0xff6600,
  hex: '#ff6600',
  shortHex: '#f60',
  name: 'orange',
  rgb: 'rgb(255, 102, 0)',
  hsl: 'hsl(24, 100%, 50%)'
};

Degreenumber

Degree (도, °)
일상에서 사용하는 각도 단위로, 원을 360등분한 것을 기준으로 합니다.

Example
직각  = 90°
반원  = 180°
한바퀴 = 360°

~extends Euler
Degree (도, °) 로 구성된 백터

DegreeEulerLikeobject

Degree (도, °) 로 구성된, x, y, z 표현 객체

Properties:
Name Type Description
x global.types~Degree
y global.types~Degree
z global.types~Degree

Double_ArrayArray.<Array.<T>>

이중 배열 ( ex : [][] )

GeoPosition

위경도 좌표계 (EPSG:4326)

Properties:
Name Type Argument Default Description
x number

경도

y number

위도

z number <optional>
0

높이

Example
GeoPosition = {x: 126.93683711673792, y: 37.51920141727152, z: 0}

GeoPositionVector3global.types~GeoPosition Vector3

~extends Vector3
위경도 좌표계 (EPSG:4326) 백터 객체

GooglePosition

Google 좌표계 ( EPSG:3857)

Properties:
Name Type Argument Default Description
x number

x축 좌표

y number

y축 좌표

z number <optional>
0

z축 좌표

Example
GooglePosition = {x: 14131119.263766665, y: 4511697.868148131, z: 22}

GooglePositionVector3global.types~GooglePosition Vector3

~extends Vector3
Google 좌표계 ( EPSG:3857)

KeyValueRecord.<string, any>

문자열 키와 임의의 값을 가지는 key-value 객체 타입

Example
const map = {
  count: 1,
  name: 'text',
  isExample: true
};

Quad_ArrayArray.<Array.<Array.<Array.<T>>>>

사중 배열 ( ex : [][][][] )

Radiannumber

Radian (라디안, rad)
수학/3D에서 사용하는 각도 단위로, 반지름과 호의 길이가 같을 때를 1rad로 정의합니다.

Example
0°   → 0
90°  → π/2  ≈ 1.5708
180° → π    ≈ 3.1416
360° → 2π   ≈ 6.2832

~extends Euler
Radian (라디안, rad) 로 구성된 백터

RadianEulerLikeobject

Radian (라디안, rad) 로 구성된, x, y, z 표현 객체

Properties:
Name Type Description
x global.types~Radian
y global.types~Radian
z global.types~Radian

Triple_ArrayArray.<Array.<Array.<T>>>

삼중 배열 ( ex : [][][] )

WorldPosition

Google 좌표계 ( EPSG:3857)

Properties:
Name Type Argument Default Description
x number

x축 좌표

y number

y축 좌표

z number <optional>
0

z축 좌표

Example
WorldPosition = {x: 14131119.263766665, y: 4511697.868148131, z: 22}

WorldPositionVector3global.types~WorldPosition Vector3

~extends Vector3
Google 좌표계 ( EPSG:3857)