Point2 Structure

point in UV-space, see https://www.codeproject.com/Tips/862988/Find-the-Intersection-Point-of-Two-Line-Segments.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public struct Point2
Inheritance
Object    ValueType    Point2

Constructors

Point2 Initializes a new instance of the Point2 struct. constructor.

Properties

Unset Gets the unset Point2.
X Gets the x-coordinate.
Y Gets the y-coordinate.

Methods

Equals Checks other point to equality with this up to small rounding error.
(Overrides ValueTypeEquals(Object))
GetHashCode Improvise a hash code.
(Overrides ValueTypeGetHashCode)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns the fully qualified type name of this instance.
(Inherited from ValueType)

Operators

Addition(Point2, Point2) Interprets two points as a vector each, and adds them.
Addition(Point2, Vector2) Gets the translate of a point by a vector.
Division(Point2, Double) Interpret point as a vector and perform scalar division.
Subtraction(Point2, Point2) Gets vector from one point to another.

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)

See Also