Questions tagged [intersection]

Intersection is a term that relates to descriptive geometry and functions. Intersections are points which are included in multiple objects. They are intersections of the object they belong to.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Determining Number of Line Segment Intersections

Given a set of line segments, determine the number of intersections. Input starts with a number N and is followed by N sets of input. For each set of input, the first number indicates the number of ...
Mikaela Cielo B. Pascual's user avatar
0 votes
1 answer
73 views

Fitting ellipse with 95% CI to points and calculating area within specific line segments

I have a set of points where x is in [-1, 1], y is between [-1, 1], and the maximum sum between abs(x) + abs(y) = 1. I want to fit an ellipsis (95% CI) and then calculate the are of the ellipsis ...
understorey's user avatar
0 votes
1 answer
65 views

Intersection Observer on a class with multiple elements visible at the same time

I've been struggling for 2 days with an Intersection Observer I have an App.vue, where there are a bunch of boxes (.box), you discover more boxes as you scroll, and there can be multiple boxes visible ...
AnnaGino's user avatar
0 votes
0 answers
14 views

GeoPandas intersetion dataframe exclude border

I have GeoDataFrame of zones with poligons. I have to find which of them are intersected. But zones have common border. How could i exclude common border from intersercion? admzones = admzones[['zid',...
Diana Oryol's user avatar
0 votes
0 answers
78 views

Stuck on Unity3D Intersect, intersection in 3D

I have a problem with how to get the outer intersected edges of a 3D object that was cut randomly. For example, sometimes i want to cut it till i reach the middle and sometimes i want to cut it just a ...
zarza nefye's user avatar
0 votes
1 answer
24 views

How to get intersection data of a field from multiple Mongodb document's field's data. Want a Mongo aggregate Query which I can add in my query

I am already using a Mongo db Aggregate Query to get a array of output. email will be the array of emails as input in the query. **aggregateQuery** = [ { '$match': { 'email': { ...
Vishal Gupta's user avatar
1 vote
1 answer
98 views

Java HashMap retainAll time complexity

I tested HashMap retainAll method to test which one is faster with JMH. Two HashMap A, B Size : A > B, A : 300~400, B : 100~200 Most of B elements is in A, so B - A is like 10~20, very small Test ...
박효상's user avatar
0 votes
1 answer
30 views

print when a rotating a box touches a uiview

In my swift code when ball touches border box it should print hit. Right now the ball rotates but nothihing is being printed when it touches borderBox I tried to do something but It is not working and ...
Bike Smith's user avatar
0 votes
0 answers
28 views

Plotting a Line onto a Plane along with Intersection Point using MATLAB

The line is given by a symmetric equation: (x-1)/2 = (y-3)/-1 = (z+1). The equation of the the plane is 3x+y+5z = 7. I have found the point of intersection to be (x=3,y=2,z=0). I now need to plot the ...
mb611's user avatar
  • 9
0 votes
1 answer
37 views

Line intersection for quadratic bezier curve fails on specific values

I have a method for finding the intersection of a line and a quadratic bezier curve (based on the answer here calculating intersection point of quadratic bezier curve ) pasted below: export type ...
Gaius Coffey's user avatar
0 votes
2 answers
48 views

How to find an intersection point with an implicit curve

The following program I made is for plotting the implicit Kepler's equation: y - e sin(y) = x (where the mean anomaly x runs here from 0° to 180°) import matplotlib as mpl import matplotlib.pyplot as ...
Andrew's user avatar
  • 998
1 vote
1 answer
23 views

How to stop overwriting values with NA when referenced index missing?

I'm trying to copy the 'Name' column values from two different dataframes stocks and major_indices to another dataframe mport if the index value of mport is present in stocks and major_indices ...
SharpeShark's user avatar
3 votes
2 answers
142 views

Haystack needles intersection - find set in haystack with most elements

I need to find out which price is valid for a feature A feature can have 1 or more pricerules (number of rules < 10; usually < 4) The price for the feature can be dependent of others features ...
surfmuggle's user avatar
  • 5,589
1 vote
1 answer
39 views

How to group combinations of values that may intersect with each other more than once?

I am trying to track the intersection of several values in a dataframe. However, one value may intersect with more than one value and these different intersections may be located in different rows. ...
Pau's user avatar
  • 65
1 vote
1 answer
77 views

How to scatter plot the intersecting values from arrays with different shapes

I have two arrays and I need to use them in a scatter plot with the consideration of their membership. For example, the first row of B is located at the second row of A, from column 2 to 3. #A array([[...
VERBOSE's user avatar
  • 707
0 votes
1 answer
53 views

Intersect two json arrays and combine all fields without using explicitly naming fields to combine

I have converted two excel sheets to json using a free online tool. It creates two separate json properties for each sheet. So we have the following json example: { "Product Info": [ { ...
Irish Redneck's user avatar
0 votes
1 answer
69 views

Remove the same elements from two arrays Golang

a:=[]rune("/storage/emulated/0/Custom_Scripts/Golang/") b:=[]rune("/storage/emulated/0/") There are two slices a && b, within the cycle we should take each element from the ...
functionX's user avatar
0 votes
0 answers
29 views

ray-paraboloid intersection in 3d space with entry and exit point in hlsl? How would i approach it?

So I'm currently programming a shader in hlsl (more specifically, shaderlab, unity's version of hlsl) where i want to simulate rocket engine's plumes. These plumes tend to follow an equation that i ...
Pedro Costa's user avatar
0 votes
1 answer
36 views

Find largest intersection of groups within groups from multiple multi-class classifications

I have different algorithms that classify individuals into groups A,B,C, or D. The predicted classification data set looks like (it is a mess!) : # sample data df_orig = tibble( Individuals = c(1, 2,...
nils's user avatar
  • 23
0 votes
2 answers
42 views

How can I test for intersection (overlap) of 2D 'ring parts' or 'ring sections'?

'Ring parts' are sections cut out of a ring. Each 'ring part' is represented by a center point, and then some bounds relative to that center point. Inner and outer distance bounds define a 2D ring, ...
Thomas Young's user avatar
-1 votes
1 answer
59 views

VBA Target intersection cell depending on row and columns headers and on userform values

My name is Arno, based in France and I am a regular user of stackoverflow where I usually find many answers. But this time I am stuck... I am familiar with making userform that print, export in PDF ...
VBA-inspired's user avatar
2 votes
2 answers
68 views

Find Period intersection in days between 2 time intervals

I need to detect how many days have in common 2 date intervals. For this I am using Itenso.TimePeriod nuget in C#. But giving the following scenario, I am getting the wrong result: var start1 = new ...
Buda Gavril's user avatar
  • 21.5k
0 votes
2 answers
118 views

Find maximally similar strings between two lists

I have two lists. The first list contains values from the database; the second list contains a set of words from a file that came from the user. list_with_name_in_BD = [ 'LOPEZ TRANSPORT', '...
Paul's user avatar
  • 103
0 votes
0 answers
135 views

Find the intersection point of 4 spheres in 3D space

I have a randomly selected point in the 3-dimensional space. Also, I have four random points and their distances to the randomly selected point. These distances are radii of these four points. All the ...
Serhii Chernikov's user avatar
0 votes
1 answer
45 views

Check intersection between each element in array of lists

In Python, I have a list of different size arrays. I would like to know the intersection for all arrays contained in the list. For instance: import numpy as np array0 = [0,1,2,3,4,5,6] array1 = [0,2,...
AaronJPung's user avatar
  • 1,104
0 votes
1 answer
111 views

Redshift SQL array intersect

Is there an array intersect function in Redshift, or a good way it can be done? For example in Snowflake it is: SELECT array_intersection(ARRAY_CONSTRUCT('A', 'B'), ARRAY_CONSTRUCT('B', 'C')); ...
Deisou's user avatar
  • 3
0 votes
0 answers
12 views

Image reveal using intersection observer not adding class

I'm using intersection intersection observer to reveal an image using clip-path like this one: https://codepen.io/Connum/pen/oNYYOgo But it's not adding the class for <script> const ...
Rommel Bagtas's user avatar
0 votes
0 answers
54 views

Calculate the area not being overlapped by other rectangles

I have one black rectangle overlapped by other rectangles (please check the attached figure). Each rectangle is represented by [Top, Left, Bottom, Right] in a 2D coordinate system. Could someone help ...
John Pekl's user avatar
1 vote
2 answers
63 views

PySpark filter intersection of two columns

I have a PySpark DataFrame and I would like to filter it such that only rows where entries in col_a are present in col_b and vice versa. Example: df = spark.createDataFrame( [ ("abc&...
CopyOfA's user avatar
  • 779
0 votes
0 answers
55 views

Issues when using Möller–Trumbore intersection algorithm to figure out if a vertex is within a shape

I am making a program in C++ that creates a grid of vertices an then imports an stl image. I then use the Möller–Trumbore intersection algorithm on every vertex of my grid to count the number of ...
dimflix 123's user avatar
0 votes
1 answer
140 views

Mesh clipping along a plane

Image I would like to ask if anyone knows how to get the intersection points between the plane and the triangle-mesh or change their color (like in the photo). I know that by using this function (...
Issam's user avatar
  • 1
0 votes
1 answer
79 views

Iteratively load large spatial dataset and perform intersection in R

I have a 20GB GeoPackage that I need to intersect with a much smaller GeoPackage (100mb). If the file sizes were smaller, then this would work: library(sf) BigDataset <- st_read("https://...
Chris's user avatar
  • 1,207
0 votes
0 answers
59 views

Single lane traffic intersection simulation on a given image (or created by matplotlib, cv2, etc)

I want to write python code that simulates single lane traffic intersection on an image that I have below. I don't necessarily need to do it with a given image, ones that are created by cv2, ...
Towen's user avatar
  • 1
0 votes
0 answers
13 views

why my image won't get remove when it intersects with another image

I made 2 imageviews, one which I move using arrow keys and one that moves using transition animation.I created a class and created a method that takes as parameters those 2 images and the pane which ...
Armand's user avatar
  • 11
0 votes
0 answers
32 views

Curve Intersection or Overlapping detection algorithm

I am attempting to build a Python GUI that creates a canvas where I can draw using a mouse or touch pen. The canvas will mainly consist of a cursive font, such as "Happy Birthday," for my ...
user21035363's user avatar
1 vote
2 answers
165 views

Is there ST_Intersects alternative that allows two(or more) polygons to share sides

I am using ST_Intersects to check if two polygons intersect. Relevant part of my query is: SELECT entity_number FROM coordinates WHERE ST_INTERSECTS($1, location) It works well to determine if one ...
ABDULLOKH MUKHAMMADJONOV's user avatar
0 votes
0 answers
43 views

How can I find the intersection of circles with center given in Lat/Lng and radius in meter?

I am trying to find the intersection of circles with their center given in Lat/Lng and their radius in meter. I find this really good code here https://gis.stackexchange.com/questions/156371/finding-...
Antonin L's user avatar
0 votes
0 answers
18 views

Overlaying two LineString doen't get expected result

I have two geodataframe, gdf1 containing the path of a bike route and test containing linestrings of a cycle way : gdf1 #contains my bike itinerary >>> index length geometry 0 ...
CBO's user avatar
  • 11
1 vote
1 answer
300 views

Equation for the intersection between a cone and a sphere?

How do you find the intersection between a sphere and a cone? Particularly the outline. The problem I'm having is generating satellite footprints. Given a sensor with boresight(direction you are ...
JohnSKepler's user avatar
0 votes
0 answers
113 views

Is there a way to intersect 2d polygons with a point cloud and filtering them out using a threshold(number of points intersecting with a polygon)?

I'm trying to intersect some building footprints in a shapefile with a point cloud. My goal is to filter out the polygons(i.e. the footprints) that intersect with a certain number of points (a ...
aogino's user avatar
  • 1
0 votes
1 answer
178 views

Intersect a set polygons/multi-polygons at once and get the intersected polygon

I have a Geopandas data frame with five multi-polygons geometries. Now, I want to intersect all the geometries at once and get the intersected polygon out of it. I tried using unary union and ...
data en's user avatar
  • 523
1 vote
1 answer
48 views

problem while taking the intersection of a list with another one

this function intersects the first list with the second, and it has to return a new list, I've used elemtype.h and list.h, (of course with elemtype.c and list.c) this is elemtype.c: #define ...
Gabriel Burzacchini's user avatar
0 votes
0 answers
29 views

Got an error while using insertion type in the typescript

I was trying to develop the backend for my website and while creating a custom type to include the property token in the createUserType I got an error stating Type 'createUserType' is not assignable ...
Rajesh bhusal's user avatar
1 vote
1 answer
62 views

TypeScript expected `never` but got intersection

I was expecting a conflicting type intersection to produce a type of never. What am I missing? type A = {value: string} type B = {value: number} type D = A & B type E<T> = T extends never ?...
Quang Van's user avatar
  • 11.7k
0 votes
0 answers
88 views

Looking for fastest polygon intersection algorithm when many test polygons can overlap a single test polygon

I am working on a polygon collision problem. The goal of the problem is to determine what percentage of a reference polygon is overlapped by a set of test polygons as quickly as possible. Here are a ...
skrhee's user avatar
  • 348
2 votes
1 answer
64 views

c# intersection two collections returns collection with intersected index and new field

I have two collections: IEnumerable<int> data1 = new List<int> {101, 102, 103, 104}; IDictionary<int, int> data2 = new Dictionary<int, int> { { 101, 1 }, { 104, 0 } }; ...
DanielV's user avatar
  • 2,146
0 votes
1 answer
59 views

Pandas create new column based on matching values from a column and values in external list

I have a dataframe Unnamed geo_zones_pickups Delstat region 4 4 ['52102' '53101'] ['52102' '53101'] [52102, 53101] 5 5 ['52102'] ['52102'] [52102] and ...
szuszfol's user avatar
  • 117
0 votes
0 answers
30 views

Hash Function on Intersecting Sets

Say we have a family of (not necessarily disjoint) sets S={S_{1}, S_{2}, S_{3}..S_{n}}. Say each set has size O(k). I need a hash-function h : S -> P (P could be anything) such that h(S_{i}) = h(S_{...
user472374's user avatar
0 votes
0 answers
139 views

Calculating Field of how many intersections each feature makes?

FC = Feature Class I have points and lines in two separate FCs representing regional projects (We can call them line_projects and point_projects). I need each project scored by how many polygons are ...
I Don't Know What I'm Doing's user avatar
0 votes
0 answers
16 views

Intersection of rank-local arrays with MPI

I wonder if there exist efficient MPI algorithms for finding intersection of rank-local arrays. Specifically, each rank holds a variable length array: rank 0: a = [1,4,7,9] rank 1: a = [2,3,7,8,10,12] ...
Nick Gnedin's user avatar

1
2 3 4 5
50