From 06b79a6f5683152938a481442d2be773cc17f90c Mon Sep 17 00:00:00 2001 From: "Michael J. Roberts" <84131395+michealroberts@users.noreply.github.com> Date: Sun, 17 Dec 2023 15:06:12 +0000 Subject: [PATCH] feat: Added type VCurve struct to vcurve IRIS module. feat: Added type VCurve struct to vcurve IRIS module. --- pkg/vcurve/vcurve.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pkg/vcurve/vcurve.go diff --git a/pkg/vcurve/vcurve.go b/pkg/vcurve/vcurve.go new file mode 100644 index 0000000..9ee5752 --- /dev/null +++ b/pkg/vcurve/vcurve.go @@ -0,0 +1,12 @@ +package vcurve + +// Point is a data point with x and y coordinates. +type Point struct { + x float64 + y float64 +} + +// VCurve is a struct that holds the data points for the V-curve. +type VCurve struct { + Points []Point +}