• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Vim.Math3d
    • AABox
    • AABox2D
    • AABox4D
    • AngularMotion
    • AxisAngle
    • Byte2
    • Byte3
    • Byte4
    • ColorHDR
    • ColorRGB
    • ColorRGBA
    • Complex
    • Constants
    • ContainmentType
    • CylindricalCoordinate
    • DAABox
    • DAABox2D
    • DAABox4D
    • DInterval
    • DPlane
    • DQuaternion
    • DRay
    • DSphere
    • DVector2
    • DVector3
    • DVector4
    • Euler
    • GeoCoordinate
    • Hash
    • HorizontalCoordinate
    • IMappable<TContainer, TPart>
    • Int2
    • Int3
    • Int4
    • Interval
    • IPoints
    • IPoints2D
    • ITransformable3D<TSelf>
    • Line
    • Line2D
    • LinearMotion
    • LinqUtil
    • LogPolarCoordinate
    • MathOps
    • Matrix4x4
    • Motion
    • MovementExtensions
    • Plane
    • PlaneIntersectionType
    • PolarCoordinate
    • Quad
    • Quad2D
    • Quaternion
    • Ray
    • Sphere
    • SphericalCoordinate
    • StatelessRandom
    • Stats<T>
    • Transform
    • Transformable3D
    • Triangle
    • Triangle2D
    • Vector2
    • Vector3
    • Vector4

Struct Triangle

Implements
System.IEquatable<Triangle>
ITransformable3D<Triangle>
IPoints
IMappable<Triangle, Vector3>
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 Source

Triangle((Vector3 a, Vector3 b, Vector3 c))

public Triangle((Vector3 a, Vector3 b, Vector3 c) tuple)
View Source

Triangle(Vector3, Vector3, Vector3)

public Triangle(Vector3 a, Vector3 b, Vector3 c)

Fields

View Source

A

[DataMember]
public readonly Vector3 A
View Source

B

[DataMember]
public readonly Vector3 B
View Source

C

[DataMember]
public readonly Vector3 C
View Source

MaxValue

public static Triangle MaxValue
View Source

MinValue

public static Triangle MinValue
View Source

Zero

public static Triangle Zero

Properties

View Source

AB

public readonly Line AB { get; }
View Source

AC

public readonly Line AC { get; }
View Source

Area

public readonly float Area { get; }
View Source

BA

public readonly Line BA { get; }
View Source

BC

public readonly Line BC { get; }
View Source

Binormal

public readonly Vector3 Binormal { get; }
View Source

BoundingBox

public readonly AABox BoundingBox { get; }
View Source

BoundingSphere

public readonly Sphere BoundingSphere { get; }
View Source

CA

public readonly Line CA { get; }
View Source

CB

public readonly Line CB { get; }
View Source

HasArea

public readonly bool HasArea { get; }
View Source

LengthA

public readonly float LengthA { get; }
View Source

LengthB

public readonly float LengthB { get; }
View Source

LengthC

public readonly float LengthC { get; }
View Source

MidPoint

public readonly Vector3 MidPoint { get; }
View Source

Normal

public readonly Vector3 Normal { get; }
View Source

NormalDirection

public readonly Vector3 NormalDirection { get; }
View Source

NumPoints

public readonly int NumPoints { get; }
View Source

Perimeter

public readonly float Perimeter { get; }
View Source

SafeNormal

public readonly Vector3 SafeNormal { get; }
View Source

Tangent

public readonly Vector3 Tangent { get; }

Methods

View Source

AlmostEquals(Triangle, Single)

public readonly bool AlmostEquals(Triangle x, float tolerance = 1E-07F)
View Source

Create((Vector3 a, Vector3 b, Vector3 c))

public static Triangle Create((Vector3 a, Vector3 b, Vector3 c) tuple)
View Source

Create(Vector3, Vector3, Vector3)

public static Triangle Create(Vector3 a, Vector3 b, Vector3 c)
View Source

Deconstruct(out Vector3, out Vector3, out Vector3)

public readonly void Deconstruct(out Vector3 a, out Vector3 b, out Vector3 c)
View Source

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)
View Source

GetHashCode()

public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source

GetPoint(Int32)

public readonly Vector3 GetPoint(int n)
View Source

IsSliver(Single)

public readonly bool IsSliver(float tolerance = 1E-07F)
View Source

Map(Func<Vector3, Vector3>)

public readonly Triangle Map(Func<Vector3, Vector3> f)
View Source

SetA(Vector3)

public readonly Triangle SetA(Vector3 x)
View Source

SetB(Vector3)

public readonly Triangle SetB(Vector3 x)
View Source

SetC(Vector3)

public readonly Triangle SetC(Vector3 x)
View Source

Side(Int32)

public readonly Line Side(int n)
View Source

ToString()

public override readonly string ToString()
Overrides
System.ValueType.ToString()
View Source

Transform(Matrix4x4)

public readonly Triangle Transform(Matrix4x4 mat)

Operators

View Source

Equality(Triangle, Triangle)

public static bool operator ==(Triangle x0, Triangle x1)
View Source

Implicit((Vector3 a, Vector3 b, Vector3 c) to Triangle)

public static implicit operator Triangle((Vector3 a, Vector3 b, Vector3 c) tuple)
View Source

Implicit(Triangle to (Vector3 a, Vector3 b, Vector3 c))

public static implicit operator (Vector3 a, Vector3 b, Vector3 c)(Triangle self)
View Source

Inequality(Triangle, Triangle)

public static bool operator !=(Triangle x0, Triangle x1)

Implements

System.IEquatable<T>
ITransformable3D<TSelf>
IPoints
IMappable<TContainer, TPart>

Extension Methods

Transformable3D.Transform<T>(ITransformable3D<T>, Matrix4x4[])
Transformable3D.Translate<T>(ITransformable3D<T>, Vector3)
Transformable3D.Translate<T>(ITransformable3D<T>, Single, Single, Single)
Transformable3D.Rotate<T>(ITransformable3D<T>, Quaternion)
Transformable3D.Scale<T>(ITransformable3D<T>, Single)
Transformable3D.Scale<T>(ITransformable3D<T>, Vector3)
Transformable3D.Scale<T>(ITransformable3D<T>, Single, Single, Single)
Transformable3D.ScaleX<T>(ITransformable3D<T>, Single)
Transformable3D.ScaleY<T>(ITransformable3D<T>, Single)
Transformable3D.ScaleZ<T>(ITransformable3D<T>, Single)
Transformable3D.LookAt<T>(ITransformable3D<T>, Vector3, Vector3, Vector3)
Transformable3D.RotateAround<T>(ITransformable3D<T>, Vector3, Single)
Transformable3D.Rotate<T>(ITransformable3D<T>, Single, Single, Single)
Transformable3D.Reflect<T>(ITransformable3D<T>, Plane)
Transformable3D.RotateX<T>(ITransformable3D<T>, Single)
Transformable3D.RotateY<T>(ITransformable3D<T>, Single)
Transformable3D.RotateZ<T>(ITransformable3D<T>, Single)
Transformable3D.TranslateRotateScale<T>(ITransformable3D<T>, Vector3, Quaternion, Vector3)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright VIM 2021, Generated by DocFX