mirror of https://github.com/CGAL/cgal
Version 3.3.7 (October 7 1999)
- Various predicates and constructions cleanups and speedups [Sylvain]. - Changed vector to to_vector in Direction
This commit is contained in:
parent
83cb1f4fa5
commit
653a15e2b0
|
|
@ -3,13 +3,13 @@
|
|||
CVS_MODULE_NAME=C2
|
||||
Package=C2
|
||||
|
||||
.PHONY: Package Test Submit Version Rtag
|
||||
.PHONY: package test submit version rtag
|
||||
|
||||
WWW_base=/u/www/0/www/htdocs/files/equipes/prisme/CGAL/DR:/Members
|
||||
WWW_dir=$(WWW_base)/$(Package)
|
||||
TMP_file=/tmp/submit-mail
|
||||
|
||||
Package: clean $(Package).tar.gz
|
||||
package: clean $(Package).tar.gz
|
||||
@echo "----------------------------------"
|
||||
@echo "------------ Penser à: -----------"
|
||||
@echo "----------------------------------"
|
||||
|
|
@ -25,19 +25,19 @@ Package: clean $(Package).tar.gz
|
|||
symlinks:
|
||||
cd include/CGAL/Cartesian ; sh ./create_symlinks_2
|
||||
|
||||
Test:
|
||||
test:
|
||||
cd test/Kernel; ./cgal_test
|
||||
|
||||
Version:
|
||||
version:
|
||||
echo "$(VERSION) (" `date +"%e %b %Y"` ")" > version
|
||||
|
||||
Commit:
|
||||
commit:
|
||||
cvs commit
|
||||
|
||||
Rtag:
|
||||
rtag:
|
||||
cvs rtag v`echo $(VERSION) | sed -e "s/\./_/g"` $(CVS_MODULE_NAME)
|
||||
|
||||
Submit: Package
|
||||
submit: package
|
||||
cp $(Package).tar.gz version long_description.txt description.txt \
|
||||
changes.txt $(WWW_dir)
|
||||
echo > $(TMP_file)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
Version 3.3.7 (October 7 1999)
|
||||
- Various predicates and constructions cleanups and speedups [Sylvain].
|
||||
- Changed vector to to_vector in Direction
|
||||
|
||||
Version 3.3.6 (September 30 1999)
|
||||
- Forgot std:: qualifier for endl in Circle_2.C
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ friend class Scaling_repC2<R>;
|
|||
// note that a direction is not translated
|
||||
Direction_2 transform(const Direction_2& dir) const
|
||||
{
|
||||
Vector_2 v = dir.vector();
|
||||
Vector_2 v = dir.to_vector();
|
||||
return Direction_2(t11 * v.x() + t12 * v.y(),
|
||||
t21 * v.x() + t22 * v.y());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ DirectionC2<R CGAL_CTAG>::counterclockwise_in_between
|
|||
template < class R >
|
||||
inline
|
||||
typename DirectionC2<R CGAL_CTAG>::Vector_2
|
||||
DirectionC2<R CGAL_CTAG>::vector() const
|
||||
DirectionC2<R CGAL_CTAG>::to_vector() const
|
||||
{
|
||||
return Vector_2(*this);
|
||||
}
|
||||
|
|
@ -220,7 +220,7 @@ template < class R >
|
|||
std::ostream
|
||||
&operator<<(std::ostream &os, const DirectionC2<R CGAL_CTAG> &d)
|
||||
{
|
||||
typename R::Vector_2 v = d.vector();
|
||||
typename R::Vector_2 v = d.to_vector();
|
||||
switch(os.iword(IO::mode)) {
|
||||
case IO::ASCII :
|
||||
return os << v.x() << ' ' << v.y();
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ public:
|
|||
bool counterclockwise_in_between( const Self &d1, const Self &d2) const;
|
||||
int id() const;
|
||||
|
||||
Vector_2 vector() const;
|
||||
Vector_2 to_vector() const;
|
||||
|
||||
Self perpendicular(const Orientation &o) const;
|
||||
Self transform(const Aff_transformation_2 &t) const;
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ CGAL_KERNEL_CTOR_INLINE
|
|||
RayC2<R CGAL_CTAG>::RayC2(const typename RayC2<R CGAL_CTAG>::Point_2 &sp,
|
||||
const typename RayC2<R CGAL_CTAG>::Direction_2 &d)
|
||||
{
|
||||
PTR = new _Twotuple<Point_2>(sp, sp + d.vector());
|
||||
PTR = new _Twotuple<Point_2>(sp, sp + d.to_vector());
|
||||
}
|
||||
|
||||
template < class R >
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@ public:
|
|||
FT cos_num;
|
||||
FT denom;
|
||||
|
||||
rational_rotation_approximation(d.vector().x(),
|
||||
d.vector().y(),
|
||||
rational_rotation_approximation(d.to_vector().x(),
|
||||
d.to_vector().y(),
|
||||
sin_num,
|
||||
cos_num,
|
||||
denom,
|
||||
|
|
@ -89,7 +89,7 @@ public:
|
|||
|
||||
Direction_2 transform(const Direction_2 &d) const
|
||||
{
|
||||
Vector_2 v = d.vector();
|
||||
Vector_2 v = d.to_vector();
|
||||
return Direction_2(_cosinus * v.x() - _sinus * v.y(),
|
||||
_sinus * v.x() + _cosinus * v.y());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue