CylinderFAxo

References
public struct CylinderFAxo
Represents an upright cylinder in axonometric projection.

Constructors

CylinderFAxo

#
public CylinderFAxo(RectangleF bounds, float shortening)
Create a new cylinder.
bounds (RectangleF)Bounds for entire cylinder.
shortening (float)Normalised shortening factor. Zero means cylinder is viewed side-on, one represents fully circular top and bottom faces. The shortening is automatically adjusted to ensure the cylinder does not exceed the bounds.

Properties

AxisLower

#
public PointF AxisLower { get; }
Gets the point at the bottom of the central axis.

AxisUpper

#
public PointF AxisUpper { get; }
Gets the point at the top of the central axis.

Bounds

#
public RectangleF Bounds { get; }
Gets the bounds of the cylinder.

FaceLower

#
public RectangleF FaceLower { get; }
Gets the bounds of the cylinder bottom face.

FaceUpper

#
public RectangleF FaceUpper { get; }
Gets the bounds of the cylinder top face.

Height

#
public float Height { get; }
Gets the height of the cylinder.

Radius

#
public float Radius { get; }
Gets the radius of the cylinder.

Shortening

#
public float Shortening { get; }
Gets the normalised shortening of the top and bottom ellipses.

Methods

PointAt

#
public PointF PointAt(float angle, float radius, float elevation)
Get a point in normalised polar coordinates.
angle (float)Angle in radians.
radius (float)Normalised radius, i.e. 1.0 equals radius of cylinder.
elevation (float)Normalised elevation, i.e. 1.0 equals the top of the cylinder.