Struct Line
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 Line : IEquatable<Line>, ITransformable3D<Line>, IPoints, IMappable<Line, Vector3>
Constructors
View SourceLine((Vector3 a, Vector3 b))
public Line((Vector3 a, Vector3 b) tuple)
Line(Vector3, Vector3)
public Line(Vector3 a, Vector3 b)
Fields
View SourceA
[DataMember]
public readonly Vector3 A
B
[DataMember]
public readonly Vector3 B
MaxValue
public static Line MaxValue
MinValue
public static Line MinValue
Zero
public static Line Zero
Properties
View SourceInverse
public readonly Line Inverse { get; }
Length
public readonly float Length { get; }
LengthSquared
public readonly float LengthSquared { get; }
MidPoint
public readonly Vector3 MidPoint { get; }
Normal
public readonly Line Normal { get; }
NumPoints
public readonly int NumPoints { get; }
Ray
public readonly Ray Ray { get; }
Vector
public readonly Vector3 Vector { get; }
Methods
View SourceAlmostEquals(Line, Single)
public readonly bool AlmostEquals(Line x, float tolerance = 1E-07F)
Create((Vector3 a, Vector3 b))
public static Line Create((Vector3 a, Vector3 b) tuple)
Create(Vector3, Vector3)
public static Line Create(Vector3 a, Vector3 b)
Deconstruct(out Vector3, out Vector3)
public readonly void Deconstruct(out Vector3 a, out Vector3 b)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Line)
public readonly bool Equals(Line x)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
GetPoint(Int32)
public readonly Vector3 GetPoint(int n)
Lerp(Single)
public readonly Vector3 Lerp(float amount)
Map(Func<Vector3, Vector3>)
public readonly Line Map(Func<Vector3, Vector3> f)
SetA(Vector3)
public readonly Line SetA(Vector3 x)
SetB(Vector3)
public readonly Line SetB(Vector3 x)
SetLength(Single)
public readonly Line SetLength(float length)
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
View Source
Transform(Matrix4x4)
public readonly Line Transform(Matrix4x4 mat)
Operators
View SourceEquality(Line, Line)
public static bool operator ==(Line x0, Line x1)
Implicit((Vector3 a, Vector3 b) to Line)
public static implicit operator Line((Vector3 a, Vector3 b) tuple)
Implicit(Line to (Vector3 a, Vector3 b))
public static implicit operator (Vector3 a, Vector3 b)(Line self)
Inequality(Line, Line)
public static bool operator !=(Line x0, Line x1)
Implements
System.IEquatable<T>