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

Implements
System.IEquatable<Line2D>
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 Line2D : IEquatable<Line2D>

Constructors

View Source

Line2D((Vector2 a, Vector2 b))

public Line2D((Vector2 a, Vector2 b) tuple)
View Source

Line2D(Vector2, Vector2)

public Line2D(Vector2 a, Vector2 b)

Fields

View Source

A

[DataMember]
public readonly Vector2 A
View Source

B

[DataMember]
public readonly Vector2 B
View Source

MaxValue

public static Line2D MaxValue
View Source

MinValue

public static Line2D MinValue
View Source

Zero

public static Line2D Zero

Methods

View Source

AlmostEquals(Line2D, Single)

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

BoundingBox()

public readonly AABox2D BoundingBox()
View Source

Create((Vector2 a, Vector2 b))

public static Line2D Create((Vector2 a, Vector2 b) tuple)
View Source

Create(Vector2, Vector2)

public static Line2D Create(Vector2 a, Vector2 b)
View Source

Deconstruct(out Vector2, out Vector2)

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

Equals(Object)

public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source

Equals(Line2D)

public readonly bool Equals(Line2D x)
View Source

GetHashCode()

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

Intersects(AABox2D, Line2D, AABox2D)

public readonly bool Intersects(AABox2D thisBox, Line2D otherLine, AABox2D otherBox)
View Source

Intersects(Line2D)

public readonly bool Intersects(Line2D other)
View Source

IsPointOnLine(Vector2)

public readonly bool IsPointOnLine(Vector2 point)
View Source

IsPointRightOfLine(Vector2)

public readonly bool IsPointRightOfLine(Vector2 point)
View Source

LinePointCrossProduct(Vector2)

public readonly double LinePointCrossProduct(Vector2 point)
View Source

SetA(Vector2)

public readonly Line2D SetA(Vector2 x)
View Source

SetB(Vector2)

public readonly Line2D SetB(Vector2 x)
View Source

ToString()

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

TouchesOrCrosses(Line2D)

public readonly bool TouchesOrCrosses(Line2D other)

Operators

View Source

Equality(Line2D, Line2D)

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

Implicit((Vector2 a, Vector2 b) to Line2D)

public static implicit operator Line2D((Vector2 a, Vector2 b) tuple)
View Source

Implicit(Line2D to (Vector2 a, Vector2 b))

public static implicit operator (Vector2 a, Vector2 b)(Line2D self)
View Source

Inequality(Line2D, Line2D)

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

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright VIM 2021, Generated by DocFX