Point

data class Point(val position: Vector3, val textureCoord: Vector2? = null, val color: ColorRGBa? = null, val normal: Vector3? = null, val tangent: Vector3? = null, val bitangent: Vector3? = null)(source)

Represents a 3D point with optional attributes for texture coordinates, color, normal vector, tangent vector, and bitangent vector.

Constructors

Link copied to clipboard
constructor(position: Vector3, textureCoord: Vector2? = null, color: ColorRGBa? = null, normal: Vector3? = null, tangent: Vector3? = null, bitangent: Vector3? = null)

Properties

Link copied to clipboard
val bitangent: Vector3?

The optional bitangent vector of the point represented as a Vector3.

Link copied to clipboard
val color: ColorRGBa?

The optional color of the point represented as a ColorRGBa.

Link copied to clipboard
val normal: Vector3?

The optional normal vector of the point represented as a Vector3.

Link copied to clipboard
val position: Vector3

The 3D position of the point represented as a Vector3.

Link copied to clipboard
val tangent: Vector3?

The optional tangent vector of the point represented as a Vector3.

Link copied to clipboard
val textureCoord: Vector2?

The optional 2D texture coordinates of the point represented as a Vector2.

Functions

Link copied to clipboard
fun pose(): Matrix44

Computes the pose of the point as a transformation matrix. The pose is derived using the normalized tangent, bitangent, and normal vectors as the columns of the matrix, combined with the position vector as the translation component.