Table of Contents

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

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

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

double

h

The underlying hyperbola that provides the points and directions of this curve. Internal state.

public SurfaceOfRevolution.HyperbolaHelp h

Field Value

SurfaceOfRevolution.HyperbolaHelp

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

double

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

double

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

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