Top
Back: hasFace
Forward: isFullSpace
FastBack: quickConeViaNormals
FastForward: fan
Up: cone related functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.22.4.27 intersectCones

Syntax:
intersectCones( cone c1, cone c2 )
Type:
cone
Purpose:
the intersection of the two cones
Example:
 
intmat M1[2][2]=
1,0,
0,1;
cone c1=coneViaRays(M1);
intmat M2[2][2]=
1,1,
1,-1;
cone c2=coneViaRays(M2);
intmat M3[2][2]=
1,0,
0,-1;
cone c3=coneViaRays(M3);
cone c12=intersectCones(c1,c2);
c12;
==> AMBIENT_DIM
==> 2
==> INEQUALITIES
==> 0,1,
==> 1,-1
==> EQUATIONS
==> 
print(getRays(c12));
==>      1     0
==>      1     1
cone c23=intersectCones(c2,c3);
c23;
==> AMBIENT_DIM
==> 2
==> INEQUALITIES
==> 0,-1,
==> 1,1
==> EQUATIONS
==> 
print(getRays(c23));
==>      1     0
==>      1    -1
cone c13=intersectCones(c1,c3);
c13;
==> AMBIENT_DIM
==> 2
==> INEQUALITIES
==> 1,0
==> EQUATIONS
==> 0,1
==> 
print(getRays(c13));
==>      1     0

Top Back: hasFace Forward: isFullSpace FastBack: quickConeViaNormals FastForward: fan Up: cone related functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-4, Jan 2012, generated by texi2html.