Class SurfaceOfRevolution.Hyperbola
- Namespace
- CADability.GeoObject
- Assembly
- CADability.dll
The 2d profile of a hyperboloid of one sheet: a straight line, skew to the axis of revolution, revolved about that axis. GetLineIntersection(GeoPoint, GeoVector) uses it in the old (2d curve) representation to intersect such a line with the surface by intersecting this curve with the 2d basis curve. Points and directions are delegated to SurfaceOfRevolution.HyperbolaHelp; cloning, copying and splitting are not implemented and throw.
public class SurfaceOfRevolution.Hyperbola : GeneralCurve2D, ICurve2D, IQuadTreeInsertable, ISerializable
- Inheritance
-
SurfaceOfRevolution.Hyperbola
- Implements
- Inherited Members
Constructors
Hyperbola(GeoPoint, GeoVector, double, double)
Creates the profile of the line through sp in direction dir revolved about the
y axis, restricted to the y range from ymin to ymax, see SurfaceOfRevolution.HyperbolaHelp.
public Hyperbola(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
b
Copies of the corresponding values of h: the shift of the center in y, the semi-axis in y and the parameter interval of the curve. Internal state, set by the constructor.
public double b
Field Value
h
The underlying hyperbola that provides the points and directions of this curve. Internal state.
public SurfaceOfRevolution.HyperbolaHelp h
Field Value
tmax
Copies of the corresponding values of h: the shift of the center in y, the semi-axis in y and the parameter interval of the curve. Internal state, set by the constructor.
public double tmax
Field Value
tmin
Copies of the corresponding values of h: the shift of the center in y, the semi-axis in y and the parameter interval of the curve. Internal state, set by the constructor.
public double tmin
Field Value
yoffset
Copies of the corresponding values of h: the shift of the center in y, the semi-axis in y and the parameter interval of the curve. 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