JSON decoders for the core OpenSolid types.
Decodes a Vector3d from a list of three floating-point components.
Decodes a Direction2d from a list of two floating-point components.
Decodes a Direction3d from a list of three floating-point components.
Decodes a Point2d from a list of two floating-point coordinates.
Decodes a Point3d from a list 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 a list of two endpoints.
Decodes a LineSegment3d from a list of two endpoints.
Decodes a Triangle2d from a list of three vertices.
Decodes a Triangle3d from a list of three vertices.
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 a list of vertices.
Decodes a Polyline3d from a list of vertices.
Decodes a Polygon2d from a list of vertices.
Decodes a Circle2d from an object with centerPoint and radius fields.
Decodes a Vector2d from a list of two floating-point components.