Struct Triangle
Implements
System.IEquatable<Triangle>
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 Triangle : IEquatable<Triangle>, ITransformable3D<Triangle>, IPoints, IMappable<Triangle, Vector3>
Constructors
View SourceTriangle((Vector3 a, Vector3 b, Vector3 c))
public Triangle((Vector3 a, Vector3 b, Vector3 c) tuple)
Triangle(Vector3, Vector3, Vector3)
public Triangle(Vector3 a, Vector3 b, Vector3 c)
Fields
View SourceA
[DataMember]
public readonly Vector3 A
B
[DataMember]
public readonly Vector3 B
C
[DataMember]
public readonly Vector3 C
MaxValue
public static Triangle MaxValue
MinValue
public static Triangle MinValue
Zero
public static Triangle Zero
Properties
View SourceAB
public readonly Line AB { get; }
AC
public readonly Line AC { get; }
Area
public readonly float Area { get; }
BA
public readonly Line BA { get; }
BC
public readonly Line BC { get; }
Binormal
public readonly Vector3 Binormal { get; }
BoundingBox
public readonly AABox BoundingBox { get; }
BoundingSphere
public readonly Sphere BoundingSphere { get; }
CA
public readonly Line CA { get; }
CB
public readonly Line CB { get; }
HasArea
public readonly bool HasArea { get; }
LengthA
public readonly float LengthA { get; }
LengthB
public readonly float LengthB { get; }
LengthC
public readonly float LengthC { get; }
MidPoint
public readonly Vector3 MidPoint { get; }
Normal
public readonly Vector3 Normal { get; }
NormalDirection
public readonly Vector3 NormalDirection { get; }
NumPoints
public readonly int NumPoints { get; }
Perimeter
public readonly float Perimeter { get; }
SafeNormal
public readonly Vector3 SafeNormal { get; }
Tangent
public readonly Vector3 Tangent { get; }
Methods
View SourceAlmostEquals(Triangle, Single)
public readonly bool AlmostEquals(Triangle x, float tolerance = 1E-07F)
Create((Vector3 a, Vector3 b, Vector3 c))
public static Triangle Create((Vector3 a, Vector3 b, Vector3 c) tuple)
Create(Vector3, Vector3, Vector3)
public static Triangle Create(Vector3 a, Vector3 b, Vector3 c)
Deconstruct(out Vector3, out Vector3, out Vector3)
public readonly void Deconstruct(out Vector3 a, out Vector3 b, out Vector3 c)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Triangle)
public readonly bool Equals(Triangle x)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
GetPoint(Int32)
public readonly Vector3 GetPoint(int n)
IsSliver(Single)
public readonly bool IsSliver(float tolerance = 1E-07F)
Map(Func<Vector3, Vector3>)
public readonly Triangle Map(Func<Vector3, Vector3> f)
SetA(Vector3)
public readonly Triangle SetA(Vector3 x)
SetB(Vector3)
public readonly Triangle SetB(Vector3 x)
SetC(Vector3)
public readonly Triangle SetC(Vector3 x)
Side(Int32)
public readonly Line Side(int n)
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
View Source
Transform(Matrix4x4)
public readonly Triangle Transform(Matrix4x4 mat)
Operators
View SourceEquality(Triangle, Triangle)
public static bool operator ==(Triangle x0, Triangle x1)
Implicit((Vector3 a, Vector3 b, Vector3 c) to Triangle)
public static implicit operator Triangle((Vector3 a, Vector3 b, Vector3 c) tuple)
Implicit(Triangle to (Vector3 a, Vector3 b, Vector3 c))
public static implicit operator (Vector3 a, Vector3 b, Vector3 c)(Triangle self)
Inequality(Triangle, Triangle)
public static bool operator !=(Triangle x0, Triangle x1)
Implements
System.IEquatable<T>