GeometryUtils class

Constructors

GeometryUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

gosper(dynamic size) → dynamic
  • Generates a Gosper curve (lying in the XY plane) *
  • hilbert2D(dynamic center, dynamic size, dynamic iterations, dynamic v0, dynamic v1, dynamic v2, dynamic v3) → dynamic
  • Generates 2D-Coordinates in a very fast way. *
    • Based on work by:
      • @link http://www.openprocessing.org/sketch/15493
      • @param center Center of Hilbert curve.
      • @param size Total width of Hilbert curve.
      • @param iterations Number of subdivisions.
      • @param v0 Corner index -X, -Z.
      • @param v1 Corner index -X, +Z.
      • @param v2 Corner index +X, +Z.
      • @param v3 Corner index +X, -Z.
  • hilbert3D(dynamic center, dynamic size, dynamic iterations, dynamic v0, dynamic v1, dynamic v2, dynamic v3, dynamic v4, dynamic v5, dynamic v6, dynamic v7) → dynamic
  • Generates 3D-Coordinates in a very fast way. *
    • Based on work by:
      • @link http://www.openprocessing.org/visuals/?visualID=15599
      • @param center Center of Hilbert curve.
      • @param size Total width of Hilbert curve.
      • @param iterations Number of subdivisions.
      • @param v0 Corner index -X, +Y, -Z.
      • @param v1 Corner index -X, +Y, +Z.
      • @param v2 Corner index -X, -Y, +Z.
      • @param v3 Corner index -X, -Y, -Z.
      • @param v4 Corner index +X, -Y, -Z.
      • @param v5 Corner index +X, -Y, +Z.
      • @param v6 Corner index +X, +Y, +Z.
      • @param v7 Corner index +X, +Y, -Z.