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

#include <opennurbs_plane.h>

Public Member Functions

ON_3dPoint ClosestPointTo (ON_3dPoint point) const
 
bool ClosestPointTo (ON_3dPoint world_point, double *u, double *v) const
 
bool CreateFromEquation (const double equation[4])
 
bool CreateFromFrame (const ON_3dPoint &origin, const ON_3dVector &x_dir, const ON_3dVector &y_dir)
 
bool CreateFromNormal (const ON_3dPoint &origin, const ON_3dVector &normal)
 
bool CreateFromPoints (const ON_3dPoint &origin, const ON_3dPoint &point_on_x, const ON_3dPoint &point_on)
 
double DistanceTo (const ON_3dPoint &point) const
 
bool Flip ()
 
bool GetDistanceToBoundingBox (const ON_BoundingBox &, double *min, double *max) const
 
ON_Line IsoLine (int dir, double c) const
 
bool IsValid () const
 
bool Morph (const ON_SpaceMorph &morph)
 
const ON_3dVectorNormal () const
 
 ON_Plane ()
 
 ON_Plane (const double equation[4])
 
 ON_Plane (const ON_3dPoint &origin, const ON_3dPoint &x_point, const ON_3dPoint &y_point)
 
 ON_Plane (const ON_3dPoint &origin, const ON_3dVector &normal)
 
 ON_Plane (const ON_3dPoint &origin, const ON_3dVector &x_dir, const ON_3dVector &y_dir)
 
bool operator!= (const ON_Plane &) const
 
bool operator== (const ON_Plane &) const
 
const ON_3dPointOrigin () const
 
ON_3dPoint PointAt (double u, double v) const
 
ON_3dPoint PointAt (double u, double v, double w) const
 
bool Rotate (double angle, const ON_3dVector &axis)
 
bool Rotate (double angle, const ON_3dVector &axis, const ON_3dPoint &center)
 
bool Rotate (double sin_angle, double cos_angle, const ON_3dVector &axis)
 
bool Rotate (double sin_angle, double cos_angle, const ON_3dVector &axis, const ON_3dPoint &center)
 
void SetOrigin (const ON_3dPoint &origin)
 
bool SwapCoordinates (int i, int j)
 
bool Transform (const ON_Xform &xform)
 
bool Translate (const ON_3dVector &delta)
 
bool UpdateEquation ()
 
const ON_3dVectorXaxis () const
 
const ON_3dVectorYaxis () const
 
 ~ON_Plane ()
 

Public Attributes

ON_3dPoint origin
 
ON_PlaneEquation plane_equation
 
ON_3dVector xaxis
 
ON_3dVector yaxis
 
ON_3dVector zaxis
 

Static Public Attributes

static const ON_Plane World_xy =ON_xy_plane
 

Constructor & Destructor Documentation

◆ ON_Plane() [1/5]

ON_Plane::ON_Plane ( )

◆ ON_Plane() [2/5]

ON_Plane::ON_Plane ( const ON_3dPoint & origin,
const ON_3dVector & normal )

◆ ON_Plane() [3/5]

ON_Plane::ON_Plane ( const ON_3dPoint & origin,
const ON_3dVector & x_dir,
const ON_3dVector & y_dir )

◆ ON_Plane() [4/5]

ON_Plane::ON_Plane ( const ON_3dPoint & origin,
const ON_3dPoint & x_point,
const ON_3dPoint & y_point )

◆ ON_Plane() [5/5]

ON_Plane::ON_Plane ( const double equation[4])

◆ ~ON_Plane()

ON_Plane::~ON_Plane ( )

Member Function Documentation

◆ ClosestPointTo() [1/2]

ON_3dPoint ON_Plane::ClosestPointTo ( ON_3dPoint point) const

◆ ClosestPointTo() [2/2]

bool ON_Plane::ClosestPointTo ( ON_3dPoint world_point,
double * u,
double * v ) const

◆ CreateFromEquation()

bool ON_Plane::CreateFromEquation ( const double equation[4])

◆ CreateFromFrame()

bool ON_Plane::CreateFromFrame ( const ON_3dPoint & origin,
const ON_3dVector & x_dir,
const ON_3dVector & y_dir )

◆ CreateFromNormal()

bool ON_Plane::CreateFromNormal ( const ON_3dPoint & origin,
const ON_3dVector & normal )

◆ CreateFromPoints()

bool ON_Plane::CreateFromPoints ( const ON_3dPoint & origin,
const ON_3dPoint & point_on_x,
const ON_3dPoint & point_on )

◆ DistanceTo()

double ON_Plane::DistanceTo ( const ON_3dPoint & point) const

◆ Flip()

bool ON_Plane::Flip ( )

◆ GetDistanceToBoundingBox()

bool ON_Plane::GetDistanceToBoundingBox ( const ON_BoundingBox & Box,
double * min,
double * max ) const

◆ IsoLine()

ON_Line ON_Plane::IsoLine ( int dir,
double c ) const

◆ IsValid()

bool ON_Plane::IsValid ( ) const

◆ Morph()

bool ON_Plane::Morph ( const ON_SpaceMorph & morph)

◆ Normal()

const ON_3dVector & ON_Plane::Normal ( ) const

◆ operator!=()

bool ON_Plane::operator!= ( const ON_Plane & other) const

◆ operator==()

bool ON_Plane::operator== ( const ON_Plane & other) const

◆ Origin()

const ON_3dPoint & ON_Plane::Origin ( ) const

◆ PointAt() [1/2]

ON_3dPoint ON_Plane::PointAt ( double u,
double v ) const

◆ PointAt() [2/2]

ON_3dPoint ON_Plane::PointAt ( double u,
double v,
double w ) const

◆ Rotate() [1/4]

bool ON_Plane::Rotate ( double angle,
const ON_3dVector & axis )

◆ Rotate() [2/4]

bool ON_Plane::Rotate ( double angle,
const ON_3dVector & axis,
const ON_3dPoint & center )

◆ Rotate() [3/4]

bool ON_Plane::Rotate ( double sin_angle,
double cos_angle,
const ON_3dVector & axis )

◆ Rotate() [4/4]

bool ON_Plane::Rotate ( double sin_angle,
double cos_angle,
const ON_3dVector & axis,
const ON_3dPoint & center )

◆ SetOrigin()

void ON_Plane::SetOrigin ( const ON_3dPoint & origin)

◆ SwapCoordinates()

bool ON_Plane::SwapCoordinates ( int i,
int j )

◆ Transform()

bool ON_Plane::Transform ( const ON_Xform & xform)

◆ Translate()

bool ON_Plane::Translate ( const ON_3dVector & delta)

◆ UpdateEquation()

bool ON_Plane::UpdateEquation ( )

◆ Xaxis()

const ON_3dVector & ON_Plane::Xaxis ( ) const

◆ Yaxis()

const ON_3dVector & ON_Plane::Yaxis ( ) const

Member Data Documentation

◆ origin

ON_3dPoint ON_Plane::origin

◆ plane_equation

ON_PlaneEquation ON_Plane::plane_equation

◆ World_xy

const ON_Plane ON_Plane::World_xy =ON_xy_plane
static

◆ xaxis

ON_3dVector ON_Plane::xaxis

◆ yaxis

ON_3dVector ON_Plane::yaxis

◆ zaxis

ON_3dVector ON_Plane::zaxis

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