Struct Line2D
Implements
System.IEquatable<Line2D>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Line2D : IEquatable<Line2D>
Constructors
View SourceLine2D((Vector2 a, Vector2 b))
public Line2D((Vector2 a, Vector2 b) tuple)
Line2D(Vector2, Vector2)
public Line2D(Vector2 a, Vector2 b)
Fields
View SourceA
[DataMember]
public readonly Vector2 A
B
[DataMember]
public readonly Vector2 B
MaxValue
public static Line2D MaxValue
MinValue
public static Line2D MinValue
Zero
public static Line2D Zero
Methods
View SourceAlmostEquals(Line2D, Single)
public readonly bool AlmostEquals(Line2D x, float tolerance = 1E-07F)
BoundingBox()
public readonly AABox2D BoundingBox()
Create((Vector2 a, Vector2 b))
public static Line2D Create((Vector2 a, Vector2 b) tuple)
Create(Vector2, Vector2)
public static Line2D Create(Vector2 a, Vector2 b)
Deconstruct(out Vector2, out Vector2)
public readonly void Deconstruct(out Vector2 a, out Vector2 b)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Line2D)
public readonly bool Equals(Line2D x)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
Intersects(AABox2D, Line2D, AABox2D)
public readonly bool Intersects(AABox2D thisBox, Line2D otherLine, AABox2D otherBox)
Intersects(Line2D)
public readonly bool Intersects(Line2D other)
IsPointOnLine(Vector2)
public readonly bool IsPointOnLine(Vector2 point)
IsPointRightOfLine(Vector2)
public readonly bool IsPointRightOfLine(Vector2 point)
LinePointCrossProduct(Vector2)
public readonly double LinePointCrossProduct(Vector2 point)
SetA(Vector2)
public readonly Line2D SetA(Vector2 x)
SetB(Vector2)
public readonly Line2D SetB(Vector2 x)
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
View Source
TouchesOrCrosses(Line2D)
public readonly bool TouchesOrCrosses(Line2D other)
Operators
View SourceEquality(Line2D, Line2D)
public static bool operator ==(Line2D x0, Line2D x1)
Implicit((Vector2 a, Vector2 b) to Line2D)
public static implicit operator Line2D((Vector2 a, Vector2 b) tuple)
Implicit(Line2D to (Vector2 a, Vector2 b))
public static implicit operator (Vector2 a, Vector2 b)(Line2D self)
Inequality(Line2D, Line2D)
public static bool operator !=(Line2D x0, Line2D x1)
Implements
System.IEquatable<T>