extract-frustum-planes

WebJar for extract-frustum-planes

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

extract-frustum-planes
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

extract-frustum-planes
WebJar for extract-frustum-planes
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mikolalysenko/extract-frustum-planes

Скачать extract-frustum-planes

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/extract-frustum-planes/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>extract-frustum-planes</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/extract-frustum-planes/
implementation 'org.webjars.npm:extract-frustum-planes:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/extract-frustum-planes/
implementation ("org.webjars.npm:extract-frustum-planes:1.0.0")
'org.webjars.npm:extract-frustum-planes:jar:1.0.0'
<dependency org="org.webjars.npm" name="extract-frustum-planes" rev="1.0.0">
  <artifact name="extract-frustum-planes" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='extract-frustum-planes', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "extract-frustum-planes" % "1.0.0"
[org.webjars.npm/extract-frustum-planes "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

extract-frustum-planes

Returns a list of frustum planes from a given WebGL matrix (assuming the matrix is stored in the same format as used by gl-matrix).

Install

npm install extract-frustum-planes

Example

var getPlanes = require("extract-frustum-planes")

var glm = require("gl-matrix")
var m = glm.mat4.perspective()

API

require("extract-frustum-planes")(worldToClip[, zNear, zFar])

Extracts the frustum planes of the combined world to clip coordinate matrix for WebGL

  • worldToClip is the concatenated model-view-projection matrix in the same format as expected by WebGL (ie compatible with gl-matrix)
  • zNear is the near clip plane distance as set by gl.depthRange (default 0.0)
  • zFar is the far clip plane distance as set by gl.depthRange

Returns An array of 6 planes encoding the view frustum stored in the order:

  • left
  • right
  • top
  • bottom
  • near
  • far

Credits

(c) 2013 Mikola Lysenko. MIT License

Версии библиотеки

Версия
1.0.0