bobzhang/vg/geometry does not have a README file
pub struct Box { min_x : Double min_y : Double max_x : Double max_y : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
pub(all) struct Path(Array[PathSegment]) derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Path::bounds(self : Path) -> Box?
fn Path::circle(center : Point, radius : Double) -> Path
fn Path::close_path(self : Path) -> Path
fn Path::curve_to(self : Path, cp1 : Point, cp2 : Point, end : Point) -> Path
fn Path::earc_to(self : Path, rx : Double, ry : Double, rotation : Double, large_arc : Bool, sweep : Bool, end : Point) -> Path
fn Path::ellipse(center : Point, rx : Double, ry : Double) -> Path
fn Path::empty() -> Path
fn Path::line_to(self : Path, p : Point) -> Path
fn Path::move_to(self : Path, p : Point) -> Path
fn Path::qcurve_to(self : Path, cp : Point, end : Point) -> Path
fn Path::rect(x : Double, y : Double, width : Double, height : Double) -> Path
fn Path::smooth_ccurve_to(self : Path, cp2 : Point, end : Point) -> Path
fn Path::smooth_qcurve_to(self : Path, end : Point) -> Path
fn Path::transform(self : Path, t : Transform) -> Path
pub(all) enum PathSegment { MoveTo(Point) LineTo(Point) CurveTo(Point, Point, Point) QCurveTo(Point, Point) EArcTo(Double, Double, Double, Bool, Bool, Point) Close} derive(Eq, @moonbitlang/core/debug.DebugDebug)
pub struct Point { x : Double y : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)fn Point::Point(x : Double, y : Double) -> Point
fn Point::add(self : Point, other : Point) -> Point
fn Point::distance(self : Point, other : Point) -> Double
fn Point::dot(self : Point, other : Point) -> Double
fn Point::length(self : Point) -> Double
fn Point::lerp(self : Point, other : Point, t : Double) -> Point
fn Point::normalize(self : Point) -> Point
fn Point::origin() -> Point
fn Point::rotate(self : Point, angle : Double) -> Point
fn Point::scale(self : Point, factor : Double) -> Point
fn Point::sub(self : Point, other : Point) -> Point
pub struct Transform { m11 : Double m12 : Double m21 : Double m22 : Double m31 : Double m32 : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn apply(t : Transform, p : Point) -> Point
fn compose_transforms(t1 : Transform, t2 : Transform) -> Transform
fn determinant(t : Transform) -> Double
fn identity() -> Transform
fn invert(t : Transform) -> Transform?
fn make_rotate(angle : Double) -> Transform
fn make_scale(sx : Double, sy : Double) -> Transform
fn make_translate(dx : Double, dy : Double) -> Transform
fn preserves_orientation(t : Transform) -> Bool
fn scale_uniform(s : Double) -> Transform
fn skew_x(angle : Double) -> Transform
fn skew_y(angle : Double) -> Transform
Install
Declarative 2D vector graphics library for MoonBit
Powered by MoonBit
© 2026 mooncakes.io