104 lines
3 KiB
C#
104 lines
3 KiB
C#
|
namespace GeometriCS
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// A line through the R cubed space with double precision.
|
|||
|
/// </summary>
|
|||
|
public class Line3d
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// A point that lies on the line.
|
|||
|
/// </summary>
|
|||
|
public Vector3d PointOnLine
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Direction vector, along which all the points on the line lie.
|
|||
|
/// </summary>
|
|||
|
public Vector3d Direction
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Constructor for the line.
|
|||
|
/// </summary>
|
|||
|
/// <param name="pointOnLine">Point that lies on the line.</param>
|
|||
|
/// <param name="direction">Direction vector on the line.</param>
|
|||
|
public Line3d(Vector3d pointOnLine, Vector3d direction)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// String representation of the line.
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public override string ToString()
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Do the two objects represent the same line?
|
|||
|
/// </summary>
|
|||
|
/// <param name="obj">Object to compare.</param>
|
|||
|
/// <remarks>
|
|||
|
/// <returns><c>true</c> if any two different points on one line will also be on the other line. <c>false</c></returns>
|
|||
|
public override bool Equals(object? obj)
|
|||
|
{
|
|||
|
if (obj is Line3d asLn)
|
|||
|
{
|
|||
|
return this == asLn;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public override int GetHashCode()
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Deep copy the line.
|
|||
|
/// </summary>
|
|||
|
/// <returns>Deep copy of the line.</returns>
|
|||
|
public object Clone()
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Are the lines equal?
|
|||
|
/// </summary>
|
|||
|
/// <param name="a">First line.</param>
|
|||
|
/// <param name="b">Second line.</param>
|
|||
|
/// <returns><c>true</c> if any two different points on one line will also be on the other line. <c>false</c></returns>
|
|||
|
public static bool operator ==(Line3d a, Line3d b)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Are the lines different?
|
|||
|
/// </summary>
|
|||
|
/// <param name="a">First line.</param>
|
|||
|
/// <param name="b">Second line.</param>
|
|||
|
/// <returns><c>true</c> If there exists a point p from all the points occupying line a and does not lie on line b. Otherwise <c>false</c>.</returns>
|
|||
|
public static bool operator !=(Line3d a, Line3d b)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|