Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Vertex

Index

Constructors

  • new Vertex(x?: number, y?: number, z?: number, u?: number, v?: number): Vertex
  • A vertex for WebGL containing the position (x,y,z) and texture coordinates (u,v).

    Parameters

    • x: number = 0
    • y: number = 0
    • z: number = 0
    • u: number = 0
    • v: number = 0

    Returns Vertex

Properties

position: Vector3
texCoords: Vector2

Methods

  • toArray(): number[]
  • Gets the class as an array of number values.

    Returns number[]

    Array

  • toFloat32Array(): Float32Array
  • Gets the class as a float32 array.

    Returns Float32Array

    Float32Array

Generated using TypeDoc