Table of Contents

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

sp GeoPoint

a point of the line, in the unit system of the surface (the axis of revolution is the y axis)

dir GeoVector

direction of the line, in the unit system

ymin double

lower bound in y of the part of the curve that is of interest

ymax double

upper 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

double

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

double

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

double

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

double

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

double

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

double

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

double

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

toCopyFrom ICurve2D

Copies 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

Position double

Where 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

Position double

Where 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

Position GeoPoint2D

Returns

double

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

Position double

the parameter where to split

Returns

ICurve2D[]

two new curves, the part from 0.0 to Position and the part from Position to 1.0; a single copy of the whole curve when Position is not strictly between 0.0 and 1.0