Drawing3d documented Class Library

LineType2d Methods

The methods of the LineType2d structure are listed below. For a complete list of LineType2d structure members, see the LineType2d Members topic.

Public Instance Methods

Cross Calculates the cross point with an other LineType L, if this exists. In this case the result is true. With the parameters lam and mue you can calculate the cross point by Value(lam) resp. L.value(mue)
CrossBounded Checks, whether the LineType2d crosses an other LineType or not. In this method, bounded lines are considered. If the cross point is between P and Q and also between the P and Q of the other line then the result is true, otherwise it would be false.
DistanceOverloaded. This method calculates the distance to a point Pt. The parameter Lam can be taken to calculate the nearest point of the LineType, which is also returned by the outvalue Nearest
DistanceBounded This method calculates the distance to a point Pt . The difference to Distance is:
If the normalprojection from the Point Pt is outside of PQ then the distance to the Point P resp Q is taken and Lam is 0 resp 1. The parameter Lam can be taken to calculate the nearest point of the LineType, which is also returned by the outvalue Nearest
Equals Overrides the equals-method and returns true, if point P and the direction are equal.
GetHashCode overrides the GetHashCode-method-
GetType (inherited from Object) 
inLine Checks whether a point lays on the line or not.
inSector Checks, if a point pt lies in a sector, which is given by the line (of this) and a second vector direction1. If you turn the direction of the line (this) in the counterclockwise sense to the other direction( direction1), you have a unique defined field. If the point is located inside this field, the result is true, otherwise it is false. By the parameter 'allowBorder' you can include or exclude the border of the sector.
mul This is the same as Operator "*"
ToString (inherited from ValueType) 
Value A valuator for the points on the line. The values lam between 0 and 1 give the points between P and Q. If it`s the linear function P + (Q - P)*lam.

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

LineType2d Class | Drawing3d.Math Namespace