Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Johan Larsson
@JohanLarsson
we wrote an analyzer with fixes for some of the breaking changes
for convenience when used from c#
Adam Miller
@millera023
What is the thought process behind having Line2D and LineSegment2D? They appear to be "mostly" the same thing.
Johan Larsson
@JohanLarsson
I think I dumbed Line2D don't remember
IIRC the definition for linesegment is a start and an end point
And a line just goes through a point with a direction
And a ray starts at a point with with a direction.
There was some activity ^
Still no package
Adam Miller
@millera023
I agree with your definitions, however Line2D does not reflect the definition you gave. I am just trying to get a gauge on what direction the whole library is moving towards.
Johan Larsson
@JohanLarsson
I think I implemented Line2D in an unfortunate way.
lately there has not been much direction
Have you seen system.numerics btw?
It looks pretty nice
Adam Jones
@Jones-Adam
LIneSegment2D is more or less a name change from Line2D to free up the namespace to implement LIne2D as per the definition Johan gave for a line. But since releases seem to be a blocking point, the sequence of change got rather lost
the idea was first LineSegment2D/3D. Then deprecate LIne2D/3D, then remove Line2D/3D. Then reintroduce support for actual geometric lines
It was envisaged to do this in separate releases to allow existing users of the library time to adapt their code... but that was back when we kind of thought we could do a series of releases in sequence, roughly one a month. Smaller evolutions
Sean bayly
@SolubleJellyfish_gitlab
Hello, is there any documentation for this package?
Github documentation link 404's
FoggyFinder
@FoggyFinder
I think the link should be removed
@SolubleJellyfish_gitlab There is no docs currently but you can get a grasp of the project from tests and API references
Sean bayly
@SolubleJellyfish_gitlab
@FoggyFinder is documentation going to be introduced in the future?
FoggyFinder
@FoggyFinder
@SolubleJellyfish_gitlab it's open source - if you feel something is missing feel free to add. I'm sure maintainers will accept PRs
Tom Makin
@tmakin
Hi all, my team are about to embark on a 3D c# mesh processing library built on spatial and would like to discuss options for contributing back again. e.g. PR into spatial or a separate OS library. I'm keen to understand the longer term ambitions for spatial and mathnet in general. Where is the best place to raise this sort of thing: private message, gitter, or issue on the repo?
Angelo Mastro
@amastrobera
Hi everyone. do you know how I can change the coordinate system of a point from the world coordinates ((0,0,0), x-axis, y-axis, z-axis) to a custom one (origin, Vx, Vy, Vz) ? I have tried this but no luck
from MathNet.Spatial import Euclidean as spa
from MathNet.Spatial import Units as spau
p1 = spa.Point3D(1,1,0)
p2 = spa.Point3D(2,2,0)
p3 = spa.Point3D(2,3,0)
v1 = (p2 - p1).Normalize()
vlen = p1.DistanceTo(p1)
#p1 + vlen*v1 == p2 # True

vx = (p2 - p1).Normalize()
vz = spa.Vector3D(0,0,1).Normalize()
vy = vx.CrossProduct(vz)

ocs = spa.CoordinateSystem(p1,vx,vy,vz)

print("p1 in its own system=%s" %  p1.TransformBy(ocs).ToString()) 
# should give (0,0,0), returns (2.41421356237309, 1, 0)