Struct Segment3d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Segment3d : IParametricCurve3d
Constructors
Segment3d(Vector3d, Vector3d)
Declaration
public Segment3d(Vector3d p0, Vector3d p1)
Parameters
Segment3d(Vector3d, Vector3d, Double)
Declaration
public Segment3d(Vector3d center, Vector3d direction, double extent)
Parameters
Fields
Center
Declaration
Field Value
Direction
Declaration
public Vector3d Direction
Field Value
Extent
Declaration
Field Value
Properties
ArcLength
Declaration
public double ArcLength { get; }
Property Value
HasArcLength
Declaration
public bool HasArcLength { get; }
Property Value
IsClosed
Declaration
public bool IsClosed { get; }
Property Value
Length
Declaration
public double Length { get; }
Property Value
P0
Declaration
public Vector3d P0 { get; set; }
Property Value
P1
Declaration
public Vector3d P1 { get; set; }
Property Value
ParamLength
Declaration
public double ParamLength { get; }
Property Value
Methods
Clone()
Declaration
public IParametricCurve3d Clone()
Returns
DistanceSquared(Vector3d)
Declaration
public double DistanceSquared(Vector3d p)
Parameters
Returns
DistanceSquared(Vector3d, out Double)
Declaration
public double DistanceSquared(Vector3d p, out double t)
Parameters
Returns
NearestPoint(Vector3d)
Declaration
public Vector3d NearestPoint(Vector3d p)
Parameters
Returns
PointAt(Double)
Declaration
public Vector3d PointAt(double d)
Parameters
Type |
Name |
Description |
Double |
d |
|
Returns
PointBetween(Double)
Declaration
public Vector3d PointBetween(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Project(Vector3d)
Declaration
public double Project(Vector3d p)
Parameters
Returns
Reverse()
Declaration
SampleArcLength(Double)
Declaration
public Vector3d SampleArcLength(double a)
Parameters
Type |
Name |
Description |
Double |
a |
|
Returns
SampleT(Double)
Declaration
public Vector3d SampleT(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
SetEndpoints(Vector3d, Vector3d)
Declaration
public void SetEndpoints(Vector3d p0, Vector3d p1)
Parameters
TangentT(Double)
Declaration
public Vector3d TangentT(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Operators
Explicit(Segment3d to Segment3f)
Declaration
public static explicit operator Segment3f(Segment3d v)
Parameters
Returns
Implicit(Segment3f to Segment3d)
Declaration
public static implicit operator Segment3d(Segment3f v)
Parameters
Returns
Implements