added Construct_opposite_vector_[23]

This commit is contained in:
Susan Hert 2001-06-20 14:12:40 +00:00
parent 3929637f32
commit 43d50fb33a
11 changed files with 72 additions and 1 deletions

View File

@ -114,6 +114,8 @@ for equality testing.
\ccNestedType{Construct_opposite_triangle_2}{}
\ccGlue
\ccNestedType{Construct_opposite_circle_2}{}
\ccGlue
\ccNestedType{Construct_opposite_vector_2}{}
If the result type is not determined, there is no \ccc{Construct_} prefix:
@ -320,6 +322,8 @@ If the result type is a number type, the prefix is \ccc{Compute_}:
\ccNestedType{Construct_opposite_line_3}{}
\ccGlue
\ccNestedType{Construct_opposite_plane_3}{}
\ccGlue
\ccNestedType{Construct_opposite_vector_3}{}
If the result type is not determined, there is no \ccc{Construct_} prefix:
@ -509,6 +513,8 @@ an \ccc{_object} suffix.
\ccGlue
\ccMemberFunction{Kernel::Construct_opposite_circle_2 construct_opposite_circle_2_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Construct_opposite_vector_2 construct_opposite_vector_2_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Transform_2 transform_2_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Assign_2 assign_2_object() const ;}{}
@ -675,6 +681,8 @@ an \ccc{_object} suffix.
\ccGlue
\ccMemberFunction{Kernel::Construct_opposite_plane_3 construct_opposite_plane_3_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Construct_opposite_vector_3 construct_opposite_vector_3_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Construct_supporting_plane_3 construct_supporting_plane_3_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Transform_3 transform_3_object() const ;}{}

View File

@ -0,0 +1,9 @@
\begin{ccRefFunctionObjectConcept}{Kernel::Construct_opposite_vector_2}
A model for this must provide:
\ccCreationVariable{fo}
\ccMemberFunction{Kernel::Vector_2 operator()(const Kernel::Vector_2& v);}
{returns the vector \ccc{-v}.}
\end{ccRefFunctionObjectConcept}

View File

@ -0,0 +1,9 @@
\begin{ccRefFunctionObjectConcept}{Kernel::Construct_opposite_vector_3}
A model for this must provide:
\ccCreationVariable{fo}
\ccMemberFunction{Kernel::Vector_3 operator()(const Kernel::Vector32& v);}
{returns the vector \ccc{-v}.}
\end{ccRefFunctionObjectConcept}

View File

@ -3,7 +3,7 @@ A model for this must provide:
\ccCreationVariable{fo}
\ccMemberFunction{Kernel::Vector_3 operator()(const Kernel::Plane_3& p)
\ccMemberFunction{Kernel::Vector_3 operator()(const Kernel::Plane_3& p);}
{returns a vector that is orthogonal to the plane \ccc{p} and directed
to the positive side of \ccc{p}.}

View File

@ -293,6 +293,10 @@
\KernelRefLayout
\input{Ref/Kernel_Construct_opposite_triangle_2.tex} %ck
\KernelRefLayout
\input{Ref/Kernel_Construct_opposite_vector_2.tex} %ck
\KernelRefLayout
\input{Ref/Kernel_Construct_opposite_vector_3.tex} %ck
\KernelRefLayout
\input{Ref/Kernel_Construct_orthogonal_vector_3.tex} %ck
\KernelRefLayout
\input{Ref/Kernel_Construct_perpendicular_direction_2.tex} %ck

View File

@ -1,5 +1,7 @@
3.45 (?? June 2001)
- Cleanup misc.h and don't include it from basic.h.
- Added Construct_orthogonal_vector_[23]
- Added Construct_opposite_vector_[23]
3.44 (19 June 2001)
- Change to support cgal_window instead of LEDA (CGAL_USE_CGAL_WINDOW).

View File

@ -292,6 +292,17 @@ class pl_Bisector
operator()(const Point& p, const Point& q) const { return bisector(p,q); }
};
template <class Vector>
class v_Opposite
{
public:
typedef Vector result_type;
Vector
operator()(const Vector& v) const
{ return -v; }
};
template <class Vector>
class v_Cross_product
{

View File

@ -103,6 +103,7 @@ typedef CGALi::Call_opposite_to_get<Ray_2> Construct_opposite_ray_2;
typedef CGALi::Call_opposite_to_get<Line_2> Construct_opposite_line_2;
typedef CGALi::Call_opposite_to_get<Triangle_2> Construct_opposite_triangle_2;
typedef CGALi::Call_opposite_to_get<Circle_2> Construct_opposite_circle_2;
typedef CGALi::v_Opposite<Vector_2> Construct_opposite_vector_2;
typedef CGALi::Assign Assign_2;
typedef CGALi::Call_transform Transform_2;
typedef CGALi::Intersect Intersect_2;
@ -116,6 +117,8 @@ CGAL_Kernel_obj(Construct_opposite_triangle_2,
construct_opposite_triangle_2_object)
CGAL_Kernel_obj(Construct_opposite_circle_2,
construct_opposite_circle_2_object)
CGAL_Kernel_obj(Construct_opposite_vector_2,
construct_opposite_vector_2_object)
CGAL_Kernel_obj(Assign_2, assign_2_object)
CGAL_Kernel_obj(Transform_2, transform_2_object)
CGAL_Kernel_obj(Intersect_2, intersect_2_object)
@ -295,6 +298,7 @@ typedef CGALi::Call_opposite_to_get<Segment_3> Construct_opposite_segment_3;
typedef CGALi::Call_opposite_to_get<Ray_3> Construct_opposite_ray_3;
typedef CGALi::Call_opposite_to_get<Line_3> Construct_opposite_line_3;
typedef CGALi::Call_opposite_to_get<Plane_3> Construct_opposite_plane_3;
typedef CGALi::v_Opposite<Vector_3> Construct_opposite_vector_3;
typedef CGALi::Call_supporting_plane_to_get<Plane_3>
Construct_supporting_plane_3;
typedef CGALi::Call_transform Transform_3;
@ -332,6 +336,7 @@ CGAL_Kernel_obj(Construct_opposite_segment_3,
CGAL_Kernel_obj(Construct_opposite_ray_3, construct_opposite_ray_3_object)
CGAL_Kernel_obj(Construct_opposite_line_3, construct_opposite_line_3_object)
CGAL_Kernel_obj(Construct_opposite_plane_3, construct_opposite_plane_3_object)
CGAL_Kernel_obj(Construct_opposite_vector_3, construct_opposite_vector_3_object)
CGAL_Kernel_obj(Construct_supporting_plane_3,
construct_supporting_plane_3_object)
CGAL_Kernel_obj(Transform_3, transform_3_object)

View File

@ -114,6 +114,8 @@ for equality testing.
\ccNestedType{Construct_opposite_triangle_2}{}
\ccGlue
\ccNestedType{Construct_opposite_circle_2}{}
\ccGlue
\ccNestedType{Construct_opposite_vector_2}{}
If the result type is not determined, there is no \ccc{Construct_} prefix:
@ -320,6 +322,8 @@ If the result type is a number type, the prefix is \ccc{Compute_}:
\ccNestedType{Construct_opposite_line_3}{}
\ccGlue
\ccNestedType{Construct_opposite_plane_3}{}
\ccGlue
\ccNestedType{Construct_opposite_vector_3}{}
If the result type is not determined, there is no \ccc{Construct_} prefix:
@ -509,6 +513,8 @@ an \ccc{_object} suffix.
\ccGlue
\ccMemberFunction{Kernel::Construct_opposite_circle_2 construct_opposite_circle_2_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Construct_opposite_vector_2 construct_opposite_vector_2_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Transform_2 transform_2_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Assign_2 assign_2_object() const ;}{}
@ -675,6 +681,8 @@ an \ccc{_object} suffix.
\ccGlue
\ccMemberFunction{Kernel::Construct_opposite_plane_3 construct_opposite_plane_3_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Construct_opposite_vector_3 construct_opposite_vector_3_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Construct_supporting_plane_3 construct_supporting_plane_3_object() const ;}{}
\ccGlue
\ccMemberFunction{Kernel::Transform_3 transform_3_object() const ;}{}

View File

@ -293,6 +293,10 @@
\KernelRefLayout
\input{Ref/Kernel_Construct_opposite_triangle_2.tex} %ck
\KernelRefLayout
\input{Ref/Kernel_Construct_opposite_vector_2.tex} %ck
\KernelRefLayout
\input{Ref/Kernel_Construct_opposite_vector_3.tex} %ck
\KernelRefLayout
\input{Ref/Kernel_Construct_orthogonal_vector_3.tex} %ck
\KernelRefLayout
\input{Ref/Kernel_Construct_perpendicular_direction_2.tex} %ck

View File

@ -292,6 +292,17 @@ class pl_Bisector
operator()(const Point& p, const Point& q) const { return bisector(p,q); }
};
template <class Vector>
class v_Opposite
{
public:
typedef Vector result_type;
Vector
operator()(const Vector& v) const
{ return -v; }
};
template <class Vector>
class v_Cross_product
{