Show / Hide Table of Contents

Struct Circle

Handling of a Circle type

Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public struct Circle

Constructors

View Source

Circle(Point3d, Double)

Constructor

Declaration
public Circle(Point3d centre, double radius)
Parameters
Type Name Description
Point3d centre

Centre point of circle

System.Double radius

Radius of circle

Properties

View Source

Centre

Property to access the centre of the circle

Declaration
public Point3d Centre { get; set; }
Property Value
Type Description
Point3d

FPAssistant Point3d

View Source

Radius

Property to access the radius of the circle

Declaration
public double Radius { get; set; }
Property Value
Type Description
System.Double

Methods

View Source

Equals(Circle)

Equals - compares this Circle with the passed in object. In this equality Double.NaN is equal to itself, unlike in numeric equality. Note that double values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail

Declaration
public bool Equals(Circle circle)
Parameters
Type Name Description
Circle circle
Returns
Type Description
System.Boolean

bool - true if "value" is equal to "this"

View Source

Equals(Circle, Circle)

Compares two Circle instances for object equality. In this equality Double.NaN is equal to itself, unlike in numeric equality

Declaration
public static bool Equals(Circle circle1, Circle circle2)
Parameters
Type Name Description
Circle circle1

The first Point3d to compare

Circle circle2

The second Point3d to compare

Returns
Type Description
System.Boolean

bool - true if the two Circle instances are exactly equal, false otherwise

View Source

Equals(Object)

Equals - compares this Circle with the passed in object. In this equality Double.NaN is equal to itself, unlike in numeric equality

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The object to compare to "this"

Returns
Type Description
System.Boolean

bool - true if the object is an instance of Point3D and if it's equal to "this"

Remarks

Note that double values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail

View Source

GetHashCode()

Returns the HashCode for this Point3d

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

int - the HashCode for this Point3d

  • View Source
In This Article
Back to top Copyright 2018-2024 CADology Limited