# @rexysaur/3d-space

> 3d space is as module used to represent a coordinate field. It can also be used to store data.

Latest version **1.0.1** (published 2020-12-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @rexysaur/3d-space
pnpm add @rexysaur/3d-space
yarn add @rexysaur/3d-space
bun add @rexysaur/3d-space
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-12-19 |
| First published | 2020-12-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rexysaur |
| Keywords | simulator, field, data-diagram |

## Links

- npm: https://www.npmjs.com/package/@rexysaur/3d-space
- npm.io page: https://npm.io/package/@rexysaur/3d-space

## Recent versions

- 1.0.1 (latest) — 2020-12-19
- 1.0.0 — 2020-12-19

## README

# 3d-space

3d space is as module used to represent a coordinate field.
It can also be used to store data.

## Usage

### Setup

this module is very simple to setup. all you have to do is create an instance of a field

```
const Field = require("@rexysaur/3d-space")

const field = new Field(size-of-field)
```

### Put data in certain location

you can put data in a certain field by doing

```
field.putDataInLocation(x coord, y coord, z coord, data)

// The number of any direction(x, y, z) should always be below the number you specify when making the field

```

### Find what data is in certain location

you can find what data is in a certain location by doing

```
const data = field.dataInLocation(x  coord, y coord, z coord)

// This function returns the data in that field
```

### Location of certain data

you can find the coordinates of a certain peice of data by doing

```
const coords = field.locationOfData(data)

// This function returns the coordinates of the data
```

---
_Source: https://npm.io/package/@rexysaur/3d-space · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
