# hemisphere-sample

> Uniform and cosinus hemisphere sampling using hammersley point set

Latest version **1.0.0** (published 2015-10-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install hemisphere-sample
pnpm add hemisphere-sample
yarn add hemisphere-sample
bun add hemisphere-sample
```

## 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.0 |
| Published | 2015-10-25 |
| First published | 2015-10-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sijie |
| Maintainers | tiansijie |
| Keywords | hemisphere, sample, sampling, hammersley point, hammersley, sphere sample, hemisphere sample, hemisphere sampling, cosinus sampling, uniform sampling |

## Links

- npm: https://www.npmjs.com/package/hemisphere-sample
- Repository: https://github.com/tiansijie/hemisphere-sample
- Issues: https://github.com/tiansijie/hemisphere-sample/issues
- npm.io page: https://npm.io/package/hemisphere-sample

## Dependencies (1)

- [hammersley](https://npm.io/package/hammersley.md) ^1.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-10-25

## README

# hemisphere-sample
Hemisphere Sampling(uniform and cosinus) using hammersley point set

## Install
```npm install hemisphere-sample```

## Usage
```javascript
import {hemisphereSampleUniform, hemisphereSampleCos} from "hemisphere-sample";

for(let i = 0; i < 256; ++i) {
	const uniform = hemisphereSampleUniform(i, 256);
	const cos = hemisphereSampleCos(i, 256);
	// result is an array
	// [v1, v2, v3]
}
```

## See also
http://holger.dammertz.org/stuff/notes_HammersleyOnHemisphere.html

## License
MIT

---
_Source: https://npm.io/package/hemisphere-sample · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
