C# Class R3.Geometry.Circle3D

Mostrar archivo Open project: roice3/Honeycombs Class Usage Examples

Public Methods

Method Description
Circle3D ( ) : System.Collections.Generic
Circle3D ( Vector3D t1, Vector3D t2, Vector3D t3 ) : System.Collections.Generic
Clone ( ) : Circle3D
FromCenterAnd2Points ( Vector3D cen, Vector3D p1, Vector3D p2 ) : Circle3D
Subdivide ( int n ) : Vector3D[]

Calculate n points around the circle

ToFlatCircle ( ) : Circle

Caller is responsible to make sure our normal is in the z direction.

Private Methods

Method Description
BaryToCartesian ( Vector3D t1, Vector3D t2, Vector3D t3, Vector3D bary ) : Vector3D

Barycentric coords to Cartesian http://stackoverflow.com/questions/11262391/from-barycentric-to-cartesian

From3Points ( Vector3D v1, Vector3D v2, Vector3D v3, Vector3D &center, double &radius ) : void

Method Details

Circle3D() public method

public Circle3D ( ) : System.Collections.Generic
return System.Collections.Generic

Circle3D() public method

public Circle3D ( Vector3D t1, Vector3D t2, Vector3D t3 ) : System.Collections.Generic
t1 Vector3D
t2 Vector3D
t3 Vector3D
return System.Collections.Generic

Clone() public method

public Clone ( ) : Circle3D
return Circle3D

FromCenterAnd2Points() public static method

public static FromCenterAnd2Points ( Vector3D cen, Vector3D p1, Vector3D p2 ) : Circle3D
cen Vector3D
p1 Vector3D
p2 Vector3D
return Circle3D

Subdivide() public method

Calculate n points around the circle
public Subdivide ( int n ) : Vector3D[]
n int
return Vector3D[]

ToFlatCircle() public method

Caller is responsible to make sure our normal is in the z direction.
public ToFlatCircle ( ) : Circle
return Circle