QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_Line Class Reference

#include <opennurbs_line.h>

Public Member Functions

ON_BoundingBox BoundingBox () const
 
ON_3dPoint ClosestPointTo (const ON_3dPoint &test_point) const
 
bool ClosestPointTo (const ON_3dPoint &test_point, double *t) const
 
bool Create (const ON_3dPoint &start, const ON_3dPoint &end)
 
ON_3dVector Direction () const
 
double DistanceTo (ON_3dPoint test_point) const
 
bool GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
bool GetTightBoundingBox (ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
 
bool InPlane (ON_Plane &plane, double tolerance=0.0) const
 
int IntersectSurface (const class ON_Surface *surfaceB, ON_SimpleArray< ON_X_EVENT > &x, double intersection_tolerance=0.0, double overlap_tolerance=0.0, const ON_Interval *line_domain=0, const ON_Interval *surfaceB_udomain=0, const ON_Interval *surfaceB_vdomain=0) const
 
bool IsFartherThan (double d, const ON_3dPoint &P) const
 
bool IsFartherThan (double d, const ON_Line &L) const
 
bool IsValid () const
 
double Length () const
 
double MaximumDistanceTo (const ON_3dPoint &P) const
 
double MaximumDistanceTo (const ON_Line &other) const
 
double MinimumDistanceTo (const ON_3dPoint &P) const
 
double MinimumDistanceTo (const ON_Line &L) const
 
 ON_Line ()
 
 ON_Line (const ON_3dPoint &start, const ON_3dPoint &end)
 
ON_3dPointoperator[] (int)
 
const ON_3dPointoperator[] (int) const
 
ON_3dPoint PointAt (double t) const
 
void Reverse ()
 
bool Rotate (double angle_in_radians, const ON_3dVector &axis_of_rotation, const ON_3dPoint &center_of_rotation)
 
bool Rotate (double sin_angle, double cos_angle, const ON_3dVector &axis_of_rotation, const ON_3dPoint &center_of_rotation)
 
ON_3dVector Tangent () const
 
bool Transform (const ON_Xform &xform)
 
bool Translate (const ON_3dVector &delta)
 
 ~ON_Line ()
 

Public Attributes

ON_3dPoint from
 
ON_3dPoint to
 

Constructor & Destructor Documentation

◆ ON_Line() [1/2]

ON_Line::ON_Line ( )

◆ ON_Line() [2/2]

ON_Line::ON_Line ( const ON_3dPoint & start,
const ON_3dPoint & end )

◆ ~ON_Line()

ON_Line::~ON_Line ( )

Member Function Documentation

◆ BoundingBox()

ON_BoundingBox ON_Line::BoundingBox ( ) const

◆ ClosestPointTo() [1/2]

ON_3dPoint ON_Line::ClosestPointTo ( const ON_3dPoint & test_point) const

◆ ClosestPointTo() [2/2]

bool ON_Line::ClosestPointTo ( const ON_3dPoint & test_point,
double * t ) const

◆ Create()

bool ON_Line::Create ( const ON_3dPoint & start,
const ON_3dPoint & end )

◆ Direction()

ON_3dVector ON_Line::Direction ( ) const

◆ DistanceTo()

double ON_Line::DistanceTo ( ON_3dPoint test_point) const

◆ GetBoundingBox()

bool ON_Line::GetBoundingBox ( ON_BoundingBox & bbox,
int bGrowBox = false ) const

◆ GetTightBoundingBox()

bool ON_Line::GetTightBoundingBox ( ON_BoundingBox & tight_bbox,
int bGrowBox = false,
const ON_Xform * xform = 0 ) const

◆ InPlane()

bool ON_Line::InPlane ( ON_Plane & plane,
double tolerance = 0.0 ) const

◆ IntersectSurface()

int ON_Line::IntersectSurface ( const class ON_Surface * surfaceB,
ON_SimpleArray< ON_X_EVENT > & x,
double intersection_tolerance = 0.0,
double overlap_tolerance = 0.0,
const ON_Interval * line_domain = 0,
const ON_Interval * surfaceB_udomain = 0,
const ON_Interval * surfaceB_vdomain = 0 ) const

◆ IsFartherThan() [1/2]

bool ON_Line::IsFartherThan ( double d,
const ON_3dPoint & P ) const

◆ IsFartherThan() [2/2]

bool ON_Line::IsFartherThan ( double d,
const ON_Line & L ) const

◆ IsValid()

bool ON_Line::IsValid ( ) const

◆ Length()

double ON_Line::Length ( ) const

◆ MaximumDistanceTo() [1/2]

double ON_Line::MaximumDistanceTo ( const ON_3dPoint & P) const

◆ MaximumDistanceTo() [2/2]

double ON_Line::MaximumDistanceTo ( const ON_Line & other) const

◆ MinimumDistanceTo() [1/2]

double ON_Line::MinimumDistanceTo ( const ON_3dPoint & P) const

◆ MinimumDistanceTo() [2/2]

double ON_Line::MinimumDistanceTo ( const ON_Line & L) const

◆ operator[]() [1/2]

ON_3dPoint & ON_Line::operator[] ( int i)

◆ operator[]() [2/2]

const ON_3dPoint & ON_Line::operator[] ( int i) const

◆ PointAt()

ON_3dPoint ON_Line::PointAt ( double t) const

◆ Reverse()

void ON_Line::Reverse ( )

◆ Rotate() [1/2]

bool ON_Line::Rotate ( double angle_in_radians,
const ON_3dVector & axis_of_rotation,
const ON_3dPoint & center_of_rotation )

◆ Rotate() [2/2]

bool ON_Line::Rotate ( double sin_angle,
double cos_angle,
const ON_3dVector & axis_of_rotation,
const ON_3dPoint & center_of_rotation )

◆ Tangent()

ON_3dVector ON_Line::Tangent ( ) const

◆ Transform()

bool ON_Line::Transform ( const ON_Xform & xform)

◆ Translate()

bool ON_Line::Translate ( const ON_3dVector & delta)

Member Data Documentation

◆ from

ON_3dPoint ON_Line::from

◆ to

ON_3dPoint ON_Line::to

The documentation for this class was generated from the following files: