Show / Hide Table of Contents

Class GeoMath

A Static Class that contains static method for calcuating geometric values.

Inheritance
System.Object
GeoMath
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dxflib.Geometry
Assembly: Dxflib.dll
Syntax
public static class GeoMath

Fields

| Improve this Doc View Source

Tolerance

The Global tolerance for comparing double values

Declaration
public const double Tolerance = 0.001
Field Value
Type Description
System.Double

Methods

| Improve this Doc View Source

ChordArea(GeoArc)

The Area between the arc line and a line that connects the two points of an arc

Declaration
public static double ChordArea(GeoArc geoArc)
Parameters
Type Name Description
GeoArc geoArc

The GeoArc that is going to be calculated

Returns
Type Description
System.Double

The Area

| Improve this Doc View Source

DegToRad(Double)

Conversion from Degrees to Radians

Declaration
public static double DegToRad(double num)
Parameters
Type Name Description
System.Double num

The quantity you would like to convert

Returns
Type Description
System.Double

Radians

| Improve this Doc View Source

Distance(Vertex, Vertex)

Calculates the direct distance between two verticies using Pythagoean Theorem.

Declaration
public static double Distance(Vertex v0, Vertex v1)
Parameters
Type Name Description
Vertex v0

The First Vertex

Vertex v1

The Second Vertex

Returns
Type Description
System.Double

The Distance between the two points

| Improve this Doc View Source

Distance(Vertex, Vertex, Double)

Calculates the distance between two points as it follows an arc that is defined by a bulge.

Declaration
public static double Distance(Vertex v0, Vertex v1, double bulge)
Parameters
Type Name Description
Vertex v0

The First Vertex

Vertex v1

The Second Vertex

System.Double bulge

The Bulge

Returns
Type Description
System.Double

A double values that represents the length along the arc defined by the two points and the Bulge

| Improve this Doc View Source

RadToDeg(Double)

Conversion from Radians to Degrees

Declaration
public static double RadToDeg(double num)
Parameters
Type Name Description
System.Double num

The quantity you would like to convert

Returns
Type Description
System.Double

Degrees

| Improve this Doc View Source

TrapzArea(GeoLine)

The Area between a Geoline and the x-axis

Declaration
public static double TrapzArea(GeoLine line)
Parameters
Type Name Description
GeoLine line

The line that defined the area

Returns
Type Description
System.Double

The area between a GeoLine and the x-axis

  • Improve this Doc
  • View Source
Back to top Generated by DocFX