Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

d9bca458 d91f 6e8b d7ab 824397d8177c

haplokuon edited this page May 6, 2023 · 1 revision

MathHelper Methods

netDxf 3.0.0 Library

Methods

ArbitraryAxis Gets the rotation matrix from the normal vector (extrusion direction) of an entity.
ArcFromBulge Obtains the data for an arc that has a start point, an end point, and a bulge value.
ArcToBulge Obtains the start point, end point, and bulge value from an arc.
FindIntersection(Vector2, Vector2, Vector2, Vector2) Calculates the intersection point of two lines.
FindIntersection(Vector2, Vector2, Vector2, Vector2, Double) Calculates the intersection point of two lines.
IsEqual(Double, Double) Checks if a number is equal to another.
IsEqual(Double, Double, Double) Checks if a number is equal to another.
IsOne(Double) Checks if a number is close to one.
IsOne(Double, Double) Checks if a number is close to one.
IsZero(Double) Checks if a number is close to zero.
IsZero(Double, Double) Checks if a number is close to zero.
NormalizeAngle Normalizes the value of an angle in degrees between [0, 360[.
PointInSegment(Vector2, Vector2, Vector2) Checks if a point is inside a line segment.
PointInSegment(Vector3, Vector3, Vector3) Checks if a point is inside a line segment.
PointLineDistance(Vector2, Vector2, Vector2) Calculates the minimum distance between a point and a line.
PointLineDistance(Vector3, Vector3, Vector3) Calculates the minimum distance between a point and a line.
RoundToNearest Round off a numeric value to the nearest of another value.
Sign(Double) Returns a value indicating the sign of a double-precision floating-point number.
Sign(Double, Double) Returns a value indicating the sign of a double-precision floating-point number.
Transform(IEnumerable(Vector2), Vector3, Double) Transform a 2d point list from object coordinates to world coordinates.
Transform(IEnumerable(Vector3), Vector3, Double) Transform a 3d point list from world coordinates to object coordinates.
Transform(Vector2, Vector3, Double) Transform a 2d point from object coordinates to world coordinates.
Transform(Vector3, Vector3, Double) Transform a 3d point from world coordinates to object coordinates.
Transform(IEnumerable(Vector2), Double, CoordinateSystem, CoordinateSystem) Transforms a point list between coordinate systems.
Transform(IEnumerable(Vector3), Vector3, CoordinateSystem, CoordinateSystem) Transforms a point list between coordinate systems.
Transform(Vector2, Double, CoordinateSystem, CoordinateSystem) Transforms a point between coordinate systems.
Transform(Vector3, Vector3, CoordinateSystem, CoordinateSystem) Transforms a point between coordinate systems.

See Also

Reference

MathHelper Class
netDxf Namespace

Clone this wiki locally