Bezier

io.github.memo33.metarules.pathing.Bezier
object Bezier

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Bezier.type

Members list

Type members

Classlikes

case class Line(p1: Point, p2: Point)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Point(x: Dec, y: Dec, z: Dec)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object PointIsDihedral extends Dihedral[Point, Dec]

Attributes

Supertypes
trait Dihedral[Point, Dec]
class Object
trait Matchable
class Any
Self type

Types

type Curve = Dec => Point
type Dec = Float

Value members

Concrete methods

def cubicCurve(p0: Point, p1: Point, p2: Point, p3: Point): Curve
def curveFromTriangle(p0: Point, p12: Point, p3: Point): Curve

Creates a cubic curve from the quadratic control triangle by guessing suitable control points. This function determines the shape of the curve, i.e. its smoothness.

Creates a cubic curve from the quadratic control triangle by guessing suitable control points. This function determines the shape of the curve, i.e. its smoothness.

Attributes

def quadraticCurve(p0: Point, p1: Point, p2: Point): Curve
def segmentCurve(minDist: Double, maxAngle: Double, curve: Curve): Seq[Point]