Struct Triangle2D
Implements
System.IEquatable<Triangle2D>
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 Triangle2D : IEquatable<Triangle2D>
Constructors
View SourceTriangle2D((Vector2 a, Vector2 b, Vector2 c))
public Triangle2D((Vector2 a, Vector2 b, Vector2 c) tuple)
Triangle2D(Vector2, Vector2, Vector2)
public Triangle2D(Vector2 a, Vector2 b, Vector2 c)
Fields
View SourceA
[DataMember]
public readonly Vector2 A
B
[DataMember]
public readonly Vector2 B
C
[DataMember]
public readonly Vector2 C
MaxValue
public static Triangle2D MaxValue
MinValue
public static Triangle2D MinValue
Zero
public static Triangle2D Zero
Properties
View SourceArea
public readonly float Area { get; }
Count
public readonly int Count { get; }
Item[Int32]
public readonly Vector2 this[int n] { get; }
Methods
View SourceAlmostEquals(Triangle2D, Single)
public readonly bool AlmostEquals(Triangle2D x, float tolerance = 1E-07F)
Contains(Vector2)
public readonly bool Contains(Vector2 pp)
Create((Vector2 a, Vector2 b, Vector2 c))
public static Triangle2D Create((Vector2 a, Vector2 b, Vector2 c) tuple)
Create(Vector2, Vector2, Vector2)
public static Triangle2D Create(Vector2 a, Vector2 b, Vector2 c)
Deconstruct(out Vector2, out Vector2, out Vector2)
public readonly void Deconstruct(out Vector2 a, out Vector2 b, out Vector2 c)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Triangle2D)
public readonly bool Equals(Triangle2D x)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
OnLeftSideOfLine(Vector2, Vector2, Vector2)
public static bool OnLeftSideOfLine(Vector2 p0, Vector2 p1, Vector2 p2)
SetA(Vector2)
public readonly Triangle2D SetA(Vector2 x)
SetB(Vector2)
public readonly Triangle2D SetB(Vector2 x)
SetC(Vector2)
public readonly Triangle2D SetC(Vector2 x)
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
Operators
View SourceEquality(Triangle2D, Triangle2D)
public static bool operator ==(Triangle2D x0, Triangle2D x1)
Implicit((Vector2 a, Vector2 b, Vector2 c) to Triangle2D)
public static implicit operator Triangle2D((Vector2 a, Vector2 b, Vector2 c) tuple)
Implicit(Triangle2D to (Vector2 a, Vector2 b, Vector2 c))
public static implicit operator (Vector2 a, Vector2 b, Vector2 c)(Triangle2D self)
Inequality(Triangle2D, Triangle2D)
public static bool operator !=(Triangle2D x0, Triangle2D x1)
Implements
System.IEquatable<T>