main.cesium.createTangentSpaceDebugPrimitive.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package cesium
/**
* Creates a [Primitive] to visualize well-known vector vertex attributes:
* `normal`, `tangent`, and `bitangent`. Normal
* is red; tangent is green; and bitangent is blue. If an attribute is not
* present, it is not drawn.
* ```
* scene.primitives.add(createTangentSpaceDebugPrimitive({
* geometry : instance.geometry,
* length : 100000.0,
* modelMatrix : instance.modelMatrix
* }));
* ```
* @return A new `Primitive` instance with geometry for the vectors.
* @see Online Documentation
*/
@JsName("\$cesium__createTangentSpaceDebugPrimitive")
external fun createTangentSpaceDebugPrimitive(options: CreateTangentSpaceDebugPrimitiveOptions): Primitive
/**
* @property [geometry] The `Geometry` instance with the attribute.
* @property [length] The length of each line segment in meters. This can be negative to point the vector in the opposite direction.
* Default value - `10000.0`
* @property [modelMatrix] The model matrix that transforms to transform the geometry from model to world coordinates.
* Default value - [Matrix4.IDENTITY]
*/
@JsName("\$cesium__CreateTangentSpaceDebugPrimitiveOptions")
external interface CreateTangentSpaceDebugPrimitiveOptions {
var geometry: Geometry
var length: Int?
var modelMatrix: Matrix4?
}