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

# Class: DWcs

局部坐标系（双精度）

与 `Wcs` 类似，但使用双精度数组以提高数值精度。

## Table of contents

### Constructors

- [constructor](DWcs.md#constructor)

### Properties

- [local](DWcs.md#local)
- [model](DWcs.md#model)
- [origin](DWcs.md#origin)
- [x\_axis](DWcs.md#x_axis)
- [y\_axis](DWcs.md#y_axis)
- [z\_axis](DWcs.md#z_axis)

### Methods

- [toLocalPoint](DWcs.md#tolocalpoint)
- [toLocalPoints](DWcs.md#tolocalpoints)
- [toLocalVector](DWcs.md#tolocalvector)
- [toModelPoint](DWcs.md#tomodelpoint)
- [toModelPoints](DWcs.md#tomodelpoints)
- [toModelVector](DWcs.md#tomodelvector)

## Constructors

### constructor

• **new DWcs**(`origin`, `x_axis`, `y_axis`): [`DWcs`](DWcs.md)

#### Parameters

| Name | Type |
| :------ | :------ |
| `origin` | `Float64Array` |
| `x_axis` | `Float64Array` |
| `y_axis` | `Float64Array` |

#### Returns

[`DWcs`](DWcs.md)

## Properties

### local

• **local**: `Float64Array` = `null`

局部变换矩阵（Float64Array）

___

### model

• **model**: `Float64Array` = `null`

模型变换矩阵（Float64Array）

___

### origin

• **origin**: `Float64Array`

原点（Float64Array，长度为3）

___

### x\_axis

• **x\_axis**: `Float64Array`

局部 X 轴（Float64Array，长度为3）

___

### y\_axis

• **y\_axis**: `Float64Array`

局部 Y 轴（Float64Array，长度为3）

___

### z\_axis

• **z\_axis**: `Float64Array`

局部 Z 轴（Float64Array，长度为3）

## Methods

### toLocalPoint

▸ **toLocalPoint**(`point`): `Float64Array`

获取局部坐标位置

#### Parameters

| Name | Type |
| :------ | :------ |
| `point` | `Float64Array` |

#### Returns

`Float64Array`

___

### toLocalPoints

▸ **toLocalPoints**(`points`): `Float64Array`

获取局部坐标位置列表

#### Parameters

| Name | Type |
| :------ | :------ |
| `points` | `Float64Array` |

#### Returns

`Float64Array`

___

### toLocalVector

▸ **toLocalVector**(`vector`): `Float64Array`

获取局部坐标法向

#### Parameters

| Name | Type |
| :------ | :------ |
| `vector` | `Float64Array` |

#### Returns

`Float64Array`

___

### toModelPoint

▸ **toModelPoint**(`point`): `Float64Array`

获取世界坐标位置

#### Parameters

| Name | Type |
| :------ | :------ |
| `point` | `Float64Array` |

#### Returns

`Float64Array`

___

### toModelPoints

▸ **toModelPoints**(`points`): `Float64Array`

获取世界坐标位置列表

#### Parameters

| Name | Type |
| :------ | :------ |
| `points` | `Float64Array` |

#### Returns

`Float64Array`

___

### toModelVector

▸ **toModelVector**(`vector`): `Float64Array`

获取世界坐标法向

#### Parameters

| Name | Type |
| :------ | :------ |
| `vector` | `Float64Array` |

#### Returns

`Float64Array`
