Class SurfaceOfRevolution.HyperbolaHelp
- Namespace
- CADability.GeoObject
- Assembly
- CADability.dll
Helper for SurfaceOfRevolution.Hyperbola: one branch of the hyperbola x = a·cosh(t), y = b·sinh(t) + yoffset in the unit system of the surface (axis of revolution = y axis). It is the profile a straight line, skew to the axis, sweeps out when it is revolved, and it is intersected with the 2d basis curve to intersect such a line with the surface. Only PointAt(double), PositionOf(GeoPoint2D), DirectionAt(double) and Reverse() are implemented; cloning, copying and splitting throw.
public class SurfaceOfRevolution.HyperbolaHelp : GeneralCurve2D, ICurve2D, IQuadTreeInsertable, ISerializable
- Inheritance
-
SurfaceOfRevolution.HyperbolaHelp
- Implements
- Inherited Members
Constructors
HyperbolaHelp(GeoPoint, GeoVector, double, double)
Computes the hyperbola that the line through sp in direction dir sweeps out
when it is revolved about the y axis, restricted to the y range from ymin to ymax.
public HyperbolaHelp(GeoPoint sp, GeoVector dir, double ymin, double ymax)
Parameters
spGeoPointa point of the line, in the unit system of the surface (the axis of revolution is the y axis)
dirGeoVectordirection of the line, in the unit system
ymindoublelower bound in y of the part of the curve that is of interest
ymaxdoubleupper bound in y of the part of the curve that is of interest
Fields
a
Parameters of the hyperbola in the unit system: a is the distance of the line from the axis (semi-axis in x),
b the semi-axis in y, yoffset the shift of the center in y, tmin and tmax the parameter
interval that corresponds to the y range from ymin to ymax. Internal state, set by the constructor.
public double a
Field Value
b
Parameters of the hyperbola in the unit system: a is the distance of the line from the axis (semi-axis in x),
b the semi-axis in y, yoffset the shift of the center in y, tmin and tmax the parameter
interval that corresponds to the y range from ymin to ymax. Internal state, set by the constructor.
public double b
Field Value
tmax
Parameters of the hyperbola in the unit system: a is the distance of the line from the axis (semi-axis in x),
b the semi-axis in y, yoffset the shift of the center in y, tmin and tmax the parameter
interval that corresponds to the y range from ymin to ymax. Internal state, set by the constructor.
public double tmax
Field Value
tmin
Parameters of the hyperbola in the unit system: a is the distance of the line from the axis (semi-axis in x),
b the semi-axis in y, yoffset the shift of the center in y, tmin and tmax the parameter
interval that corresponds to the y range from ymin to ymax. Internal state, set by the constructor.
public double tmin
Field Value
ymax
Parameters of the hyperbola in the unit system: a is the distance of the line from the axis (semi-axis in x),
b the semi-axis in y, yoffset the shift of the center in y, tmin and tmax the parameter
interval that corresponds to the y range from ymin to ymax. Internal state, set by the constructor.
public double ymax
Field Value
ymin
Parameters of the hyperbola in the unit system: a is the distance of the line from the axis (semi-axis in x),
b the semi-axis in y, yoffset the shift of the center in y, tmin and tmax the parameter
interval that corresponds to the y range from ymin to ymax. Internal state, set by the constructor.
public double ymin
Field Value
yoffset
Parameters of the hyperbola in the unit system: a is the distance of the line from the axis (semi-axis in x),
b the semi-axis in y, yoffset the shift of the center in y, tmin and tmax the parameter
interval that corresponds to the y range from ymin to ymax. Internal state, set by the constructor.
public double yoffset
Field Value
Methods
Clone()
Returns an independent copy of this curve of the same type. Modifying the copy does not affect this curve.
public override ICurve2D Clone()
Returns
- ICurve2D
the copy
Copy(ICurve2D)
Copies the data of the given object to this object. Both objects must be of the same type.
public override void Copy(ICurve2D toCopyFrom)
Parameters
toCopyFromICurve2DCopies the data of this object
DirectionAt(double)
Returns the direction of the curve at the provided normalized position.
public override GeoVector2D DirectionAt(double Position)
Parameters
PositiondoubleWhere to get the direction
Returns
- GeoVector2D
The direction
PointAt(double)
Returns the point of the curve at the provided normalized position
public override GeoPoint2D PointAt(double Position)
Parameters
PositiondoubleWhere to get the direction
Returns
- GeoPoint2D
The point
PositionOf(GeoPoint2D)
Returns the position of point p on the curve: 0.0 corresponds to the StartPoint 1.0 to the EndPoint
public override double PositionOf(GeoPoint2D Position)
Parameters
PositionGeoPoint2D
Returns
Reverse()
Reverses the direction of this curve
public override void Reverse()
Split(double)
Splits the curve at the given normalized parameter. The curve itself remains unchanged.
public override ICurve2D[] Split(double Position)
Parameters
Positiondoublethe parameter where to split
Returns
- ICurve2D[]
two new curves, the part from 0.0 to
Positionand the part fromPositionto 1.0; a single copy of the whole curve whenPositionis not strictly between 0.0 and 1.0