• Preparing search index...
  • The search index is not available
@xeokit/sdk - v0.1.0
  • @xeokit/sdk
  • math
  • boundaries
  • getPositions3Center

Function getPositions3Center

  • getPositions3Center(positions: FloatArrayParam, center?: Vec3): Vec3

    Computes the center of a set of 3D positions stored in a flattened array.

    Parameters

    • positions: FloatArrayParam

      A flattened array of 3D points [x0, y0, z0, x1, y1, z1, ...].

    • center: Vec3 = ...

      The output center point [x, y, z]. Defaults to a new vector.

    Returns Vec3

    The computed center [x, y, z].

    • Defined in packages/sdk/src/math/boundaries.ts:623

Settings

Member Visibility
@xeokit/sdk - v0.1.0
  • Loading...

Generated using TypeDoc