Class Cylinder
Represents a cylindrical surface.
Inheritance
Implements
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class Cylinder : object, ISurface
Constructors
| Improve this Doc View SourceCylinder(Plane, Double, Interval)
Initializes a new instance of the Cylinder class from it's individual components.
Declaration
public Cylinder(Plane plane, double radius, Interval domain)
Parameters
Type | Name | Description |
---|---|---|
Plane | plane | The plane of the cylinder. |
System.Double | radius | The radius of the cylinder. |
Interval | domain | The cylinder height range. |
Properties
| Improve this Doc View SourceDomainU
Gets the domain in the U direction.
Declaration
public Interval DomainU { get; set; }
Property Value
Type | Description |
---|---|
Interval |
DomainV
Gets the domain in the V direction.
Declaration
public Interval DomainV { get; set; }
Property Value
Type | Description |
---|---|
Interval |
Height
Gets the cylinder height.
Declaration
public double Height { get; }
Property Value
Type | Description |
---|---|
System.Double |
HeightRange
Gets or sets the height range of the cylinder.
Declaration
public Interval HeightRange { get; set; }
Property Value
Type | Description |
---|---|
Interval |
Plane
Gets or sets the base plane of the cylinder.
Declaration
public Plane Plane { get; set; }
Property Value
Type | Description |
---|---|
Plane |
Radius
Gets or sets the radius of the cylinder.
Declaration
public double Radius { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceClosestPointTo(Point3d)
Compute the closes point of a point in this cylinder.
Declaration
public Point3d ClosestPointTo(Point3d point)
Parameters
Type | Name | Description |
---|---|---|
Point3d | point | Point to compute with. |
Returns
Type | Description |
---|---|
Point3d | Point3d instance of the closest point in the cylinder. |
DistanceTo(Point3d)
Compute the distance from a point to this cylinder.
Declaration
public double DistanceTo(Point3d point)
Parameters
Type | Name | Description |
---|---|---|
Point3d | point | Point to compute with. |
Returns
Type | Description |
---|---|
System.Double | Number representing the distance. |
FrameAt(Double, Double)
Compute the tangent plane at the specified surface coordinates.
Declaration
public Plane FrameAt(double u, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | u | U coordinate. |
System.Double | v | V coordinate. |
Returns
Type | Description |
---|---|
Plane | Tangent plane. |
NormalAt(Double, Double)
Compute the normal at the specified surface coordinates.
Declaration
public Vector3d NormalAt(double u, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | u | U coordinate. |
System.Double | v | V coordinate. |
Returns
Type | Description |
---|---|
Vector3d | Normal vector. |
PointAt(Double, Double)
Compute a point at the specified surface coordinates.
Declaration
public Point3d PointAt(double u, double v)
Parameters
Type | Name | Description |
---|---|---|
System.Double | u | U coordinate. |
System.Double | v | V coordinate. |
Returns
Type | Description |
---|---|
Point3d |