• 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 Line

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

Constructors

View Source

Line((Vector3 a, Vector3 b))

public Line((Vector3 a, Vector3 b) tuple)
View Source

Line(Vector3, Vector3)

public Line(Vector3 a, Vector3 b)

Fields

View Source

A

[DataMember]
public readonly Vector3 A
View Source

B

[DataMember]
public readonly Vector3 B
View Source

MaxValue

public static Line MaxValue
View Source

MinValue

public static Line MinValue
View Source

Zero

public static Line Zero

Properties

View Source

Inverse

public readonly Line Inverse { get; }
View Source

Length

public readonly float Length { get; }
View Source

LengthSquared

public readonly float LengthSquared { get; }
View Source

MidPoint

public readonly Vector3 MidPoint { get; }
View Source

Normal

public readonly Line Normal { get; }
View Source

NumPoints

public readonly int NumPoints { get; }
View Source

Ray

public readonly Ray Ray { get; }
View Source

Vector

public readonly Vector3 Vector { get; }

Methods

View Source

AlmostEquals(Line, Single)

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

Create((Vector3 a, Vector3 b))

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

Create(Vector3, Vector3)

public static Line Create(Vector3 a, Vector3 b)
View Source

Deconstruct(out Vector3, out Vector3)

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

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

GetHashCode()

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

GetPoint(Int32)

public readonly Vector3 GetPoint(int n)
View Source

Lerp(Single)

public readonly Vector3 Lerp(float amount)
View Source

Map(Func<Vector3, Vector3>)

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

SetA(Vector3)

public readonly Line SetA(Vector3 x)
View Source

SetB(Vector3)

public readonly Line SetB(Vector3 x)
View Source

SetLength(Single)

public readonly Line SetLength(float length)
View Source

ToString()

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

Transform(Matrix4x4)

public readonly Line Transform(Matrix4x4 mat)

Operators

View Source

Equality(Line, Line)

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

Implicit((Vector3 a, Vector3 b) to Line)

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

Implicit(Line to (Vector3 a, Vector3 b))

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

Inequality(Line, Line)

public static bool operator !=(Line x0, Line 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