JSON decoders for the core OpenSolid types.
Decodes a Vector3d from an array of three floating-point components.
Decodes a Direction2d from an array of two floating-point components.
Decodes a Direction3d from an array of three floating-point components.
Decodes a Point2d from an array of two floating-point coordinates.
Decodes a Point3d from an array of three floating-point coordinates.
Decodes an Axis2d from an object with originPoint and direction
fields.
Decodes an Axis3d from an object with originPoint and direction
fields.
Decodes a Plane3d from an object with originPoint and normalDirection
fields.
Decodes a Frame2d from an object with originPoint, xDirection and
yDirection fields.
Decodes a Frame3d from an object with originPoint, xDirection,
yDirection and zDirection fields.
Decodes a SketchPlane3d from an object with originPoint, xDirection
and yDirection fields.
Decodes a LineSegment2d from an array of two endpoints.
Decodes a LineSegment3d from an array of two endpoints.
Decodes a Triangle2d from an array of three vertices.
Decodes a Triangle3d from an array of three vertices.
Decodes an Interval from an object with minValue and maxValue fields.
Decodes a BoundingBox2d from an object with minX, maxX, minY and
maxY fields.
Decodes a BoundingBox3d from an object with minX, maxX, minY,
maxY, minZ and maxZ fields.
Decodes a Polyline2d from an array of vertices.
Decodes a Polyline3d from an array of vertices.
Decodes a Polygon2d from an array of vertices.
Decodes a Circle2d from an object with centerPoint and radius fields.
Decodes a Circle3d from an object with centerPoint, axialDirection and
radius fields.
Decodes an Ellipse2d from an object with centerPoint, xDirection,
xRadius and yRadius fields.
Decodes an Arc2d from an object with centerPoint, startPoint and
sweptAngle fields.
Decodes an Arc3d from an object with axis, startPoint and sweptAngle
fields.
Decodes an EllipticalArc2d from an object with centerPoint,
xDirection, xRadius, yRadius, startAngle and sweptAngle fields.
Decodes a Sphere3d from an object with centerPoint and radius fields.
Decodes a QuadraticSpline2d from an array of three control points.
Decodes a QuadraticSpline3d from an array of three control points.
Decodes a CubicSpline2d from an array of four control points.
Decodes a CubicSpline3d from an array of four control points.
Decodes a
Vector2dfrom an array of two floating-point components.