Show / Hide Table of Contents

Class Geometry

Contains trigonometry and geometry functions.

Inheritance
object
Geometry
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Math
Assembly: MCART.dll
Syntax
public static class Geometry

Fields

| Edit this page View Source

DegRad

Represents the ratio of 1 degree to PI.

Declaration
public const double DegRad = 0.0174532925199433
Field Value
Type Description
double

Methods

| Edit this page View Source

GetArcPoint(in double, in double, in double, in double)

Gets the coordinates of a point within an arc.

Declaration
public static Point GetArcPoint(in double radius, in double startAngle, in double endAngle, in double position)
Parameters
Type Name Description
double radius

The radius of the arc.

double startAngle

The starting angle of the arc, in a clockwise direction.

double endAngle

The ending angle of the arc, in a clockwise direction.

double position

The position to get within the arc.

Returns
Type Description
Point

A set of coordinates with the position of the requested point.

| Edit this page View Source

GetCirclePoint(in double, in double)

Gets the coordinates of a point within a circle.

Declaration
public static Point GetCirclePoint(in double radius, in double position)
Parameters
Type Name Description
double radius

The radius of the circle.

double position

The position to get within the circle.

Returns
Type Description
Point

A set of coordinates with the position of the requested point.

| Edit this page View Source

GetQuadBezierPoint(in double, in Point, in Point, in Point)

Gets the X, Y coordinates of a specific position within a quadratic Bézier curve.

Declaration
public static Point GetQuadBezierPoint(in double position, in Point startPoint, in Point controlPoint, in Point endPoint)
Parameters
Type Name Description
double position

The position to get, which must be a double between 0.0 and 1.0.

Point startPoint

The starting point of the quadratic Bézier curve.

Point controlPoint

The control point of the quadratic Bézier curve.

Point endPoint

The ending point of the quadratic Bézier curve.

Returns
Type Description
Point

A Point with the coordinates corresponding to the position within the given quadratic Bézier curve.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX