[gs-longan](../README.md) / CoordinateManager

# Class: CoordinateManager

## Hierarchy

- [`ViewerManagerBase`](ViewerManagerBase.md)

  ↳ **`CoordinateManager`**

## Table of contents

### Constructors

- [constructor](CoordinateManager.md#constructor)

### Properties

- [projectsCenter](CoordinateManager.md#projectscenter)

### Accessors

- [viewer](CoordinateManager.md#viewer)

### Methods

- [localToWorld](CoordinateManager.md#localtoworld)
- [worldToLocal](CoordinateManager.md#worldtolocal)

## Constructors

### constructor

• **new CoordinateManager**(`viewer`): [`CoordinateManager`](CoordinateManager.md)

#### Parameters

| Name | Type |
| :------ | :------ |
| `viewer` | [`Viewer`](Viewer.md) |

#### Returns

[`CoordinateManager`](CoordinateManager.md)

#### Overrides

[ViewerManagerBase](ViewerManagerBase.md).[constructor](ViewerManagerBase.md#constructor)

## Properties

### projectsCenter

• **projectsCenter**: `Float32Array`

## Accessors

### viewer

• `get` **viewer**(): [`Viewer`](Viewer.md)

#### Returns

[`Viewer`](Viewer.md)

#### Inherited from

ViewerManagerBase.viewer

## Methods

### localToWorld

▸ **localToWorld**(`points`): `Float32Array`

渲染坐标转业务坐标

#### Parameters

| Name | Type |
| :------ | :------ |
| `points` | `Float32Array` |

#### Returns

`Float32Array`

___

### worldToLocal

▸ **worldToLocal**(`points`): `Float32Array`

业务坐标转渲染坐标

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `points` | `Float32Array` | 点集坐标 |

#### Returns

`Float32Array`
