Top
Back: convexHull
Forward: dimension
FastBack: coneViaInequalities
FastForward: fan
Up: cone related functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.22.3.10 convexIntersection

Syntax:
convexIntersection( cone c1, cone c2 )
convexIntersection( cone c1, polytope p1 )
convexIntersection( polytope p1, cone c1 )
convexIntersection( polytope p1, polytope p2 )
Type:
cone if both input arguments are cones, else polytope
Purpose:
the intersection of the two objects
Example:
 
LIB"gfanlib.so";
intmat M1[2][2]=
1,0,
0,1;
cone c1=coneViaPoints(M1);
intmat M2[2][2]=
1,1,
1,-1;
cone c2=coneViaPoints(M2);
intmat M3[2][2]=
1,0,
0,-1;
cone c3=coneViaPoints(M3);
cone c12=convexIntersection(c1,c2);
c12;
==> AMBIENT_DIM
==> 2
==> FACETS
==> 0, 1,
==> 1,-1
==> LINEAR_SPAN
==> 
==> 
print(rays(c12));
==> 1,0,
==> 1,1
cone c23=convexIntersection(c2,c3);
c23;
==> AMBIENT_DIM
==> 2
==> FACETS
==> 0,-1,
==> 1, 1
==> LINEAR_SPAN
==> 
==> 
print(rays(c23));
==> 1, 0,
==> 1,-1
cone c13=convexIntersection(c1,c3);
c13;
==> AMBIENT_DIM
==> 2
==> FACETS
==> 1,0
==> LINEAR_SPAN
==> 0,1
==> 
print(rays(c13));
==> 1,0

Top Back: convexHull Forward: dimension FastBack: coneViaInequalities FastForward: fan Up: cone related functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.