Merge pull request #38 from specklesystems/oguzhan/remove-point-value-prop

Have it back
This commit is contained in:
Dimitrie Stefanescu
2024-07-17 10:08:55 +01:00
committed by GitHub
+15
View File
@@ -43,6 +43,21 @@ public class Point : Base, ITransformable<Point>
public Point(Vector vector)
: this(vector.x, vector.y, vector.z, vector.units, vector.applicationId) { }
/// <summary>
/// Gets or sets the coordinates of the <see cref="Point"/>
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore), Obsolete("Use x,y,z properties instead", true)]
public List<double> value
{
get => null!;
set
{
x = value[0];
y = value[1];
z = value.Count > 2 ? value[2] : 0;
}
}
/// <summary>
/// The x coordinate of the point.
/// </summary>