Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeometryUtility

Hierarchy

  • GeometryUtility

Index

Methods

Static capsule

  • capsule(center: number[], up: number[], right: number[], forward: number[], vdiv?: number, hdiv?: number): number[]
  • Parameters

    • center: number[]
    • up: number[]
    • right: number[]
    • forward: number[]
    • Default value vdiv: number = 3
    • Default value hdiv: number = 3

    Returns number[]

Static circle

  • circle(center: number[], normal: number[], up: number[], right: number[], divide?: number): number[]
  • Parameters

    • center: number[]
    • normal: number[]
    • up: number[]
    • right: number[]
    • Default value divide: number = 5

    Returns number[]

Static circleIndex

  • circleIndex(offset: number, divide: number): number[]

Static coneTriangle

  • coneTriangle(center: number[], normal: number[], up: number[], right: number[], divide: number, order: number): number[]
  • Parameters

    • center: number[]
    • normal: number[]
    • up: number[]
    • right: number[]
    • divide: number
    • order: number

    Returns number[]

Static cylinderPlane

  • cylinderPlane(center: number[], normal: number[], up: number[], right: number[], divide: number, order: number): number[]
  • Parameters

    • center: number[]
    • normal: number[]
    • up: number[]
    • right: number[]
    • divide: number
    • order: number

    Returns number[]

Static linesFromTriangles

  • linesFromTriangles(indices: number[]): number[]

Static plane

  • plane(center: number[], normal: number[], up: number[], right: number[], hdiv?: number, vdiv?: number, reverse?: boolean): number[]
  • Parameters

    • center: number[]
    • normal: number[]
    • up: number[]
    • right: number[]
    • Default value hdiv: number = 1
    • Default value vdiv: number = 1
    • Default value reverse: boolean = false

    Returns number[]

Static planeIndex

  • planeIndex(offset?: number, hdiv?: number, vdiv?: number): number[]
  • Parameters

    • Default value offset: number = 0
    • Default value hdiv: number = 0
    • Default value vdiv: number = 0

    Returns number[]

Static sphere

  • sphere(center: number[], up: number[], right: number[], forward: number[], vdiv: number, hdiv: number): number[]
  • Parameters

    • center: number[]
    • up: number[]
    • right: number[]
    • forward: number[]
    • vdiv: number
    • hdiv: number

    Returns number[]

Static sphereIndex

  • sphereIndex(offset: number, vdiv: number, hdiv: number): number[]

Static triangle

  • triangle(center: number[], normal: number[], up: number[], right: number[]): number[]

Static triangleIndex

  • triangleIndex(offset: number): any[]

Generated using TypeDoc