Skip to content

Commit

Permalink
Updating NPack.dll
Browse files Browse the repository at this point in the history
Adding an implementation of IAffineTransformMatrix and IMatrixOperations from NPack
  • Loading branch information
codekaizen committed May 9, 2008
1 parent bf4e775 commit bf20b3c
Show file tree
Hide file tree
Showing 48 changed files with 3,773 additions and 1,608 deletions.
1,157 changes: 838 additions & 319 deletions ExternalReferences/Debug_Net20/NPack.XML

Large diffs are not rendered by default.

Binary file modified ExternalReferences/Debug_Net20/NPack.dll
Binary file not shown.
Binary file modified ExternalReferences/Debug_Net20/NPack.pdb
Binary file not shown.
1,157 changes: 838 additions & 319 deletions ExternalReferences/Debug_Net35/NPack.XML

Large diffs are not rendered by default.

Binary file modified ExternalReferences/Debug_Net35/NPack.dll
Binary file not shown.
Binary file modified ExternalReferences/Debug_Net35/NPack.pdb
Binary file not shown.
1,157 changes: 838 additions & 319 deletions ExternalReferences/Release_Net20/NPack.XML

Large diffs are not rendered by default.

Binary file modified ExternalReferences/Release_Net20/NPack.dll
Binary file not shown.
Binary file modified ExternalReferences/Release_Net20/NPack.pdb
Binary file not shown.
1,157 changes: 838 additions & 319 deletions ExternalReferences/Release_Net35/NPack.XML

Large diffs are not rendered by default.

Binary file modified ExternalReferences/Release_Net35/NPack.dll
Binary file not shown.
Binary file modified ExternalReferences/Release_Net35/NPack.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace ProjNet.CoordinateSystems
/// </para>
/// </remarks>
public class CoordinateSystemFactory<TCoordinate> : ICoordinateSystemFactory<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>, IComparable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>, IComparable<TCoordinate>,
IComputable<Double, TCoordinate>,
IConvertible
{
Expand Down
2 changes: 1 addition & 1 deletion Proj.Net/ProjNet/CoordinateSystems/CoordinateSystem`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace ProjNet.CoordinateSystems
/// mapping from the mathematical space into real-world locations is called a Datum.</para>
/// </remarks>
public abstract class CoordinateSystem<TCoordinate> : Info, ICoordinateSystem<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>,
IComparable<TCoordinate>, IConvertible,
IComputable<Double, TCoordinate>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace ProjNet.CoordinateSystems
/// </summary>
public class GeocentricCoordinateSystem<TCoordinate> : CoordinateSystem<TCoordinate>,
IGeocentricCoordinateSystem<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>,
IComparable<TCoordinate>, IConvertible,
IComputable<Double, TCoordinate>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace ProjNet.CoordinateSystems
/// </remarks>
public class GeographicCoordinateSystem<TCoordinate> : HorizontalCoordinateSystem<TCoordinate>,
IGeographicCoordinateSystem<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>,
IComparable<TCoordinate>, IConvertible,
IComputable<Double, TCoordinate>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace ProjNet.CoordinateSystems
/// </summary>
public abstract class HorizontalCoordinateSystem<TCoordinate> : CoordinateSystem<TCoordinate>,
IHorizontalCoordinateSystem<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>,
IComparable<TCoordinate>, IConvertible,
IComputable<Double, TCoordinate>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace ProjNet.CoordinateSystems
/// </summary>
public class ProjectedCoordinateSystem<TCoordinate> : HorizontalCoordinateSystem<TCoordinate>,
IProjectedCoordinateSystem<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>,
IComparable<TCoordinate>, IConvertible,
IComputable<Double, TCoordinate>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace ProjNet.CoordinateSystems.Projections
/// direction, distance and shape somewhat.</para>
/// </remarks>
internal class AlbersProjection<TCoordinate> : MapProjection<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>, IComparable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>, IComparable<TCoordinate>,
IComputable<Double, TCoordinate>,
IConvertible
{
Expand Down Expand Up @@ -319,10 +319,11 @@ public override TCoordinate DegreesToMeters(TCoordinate lonlat)
/// <returns>Transformed point in decimal degrees</returns>
public override TCoordinate MetersToDegrees(TCoordinate p)
{
Double theta = Math.Atan((p[0] * _metersPerUnit - _falseEasting)
Double p0 = (Double)p[0];
Double theta = Math.Atan((p0 * _metersPerUnit - _falseEasting)
/ (ro0 - (p[1].Multiply(_metersPerUnit) - _falseNorthing)));

Double ro = Math.Sqrt(Math.Pow(p[0] * _metersPerUnit - _falseEasting, 2)
Double ro = Math.Sqrt(Math.Pow(p0 * _metersPerUnit - _falseEasting, 2)
+ Math.Pow(ro0 - (p[1].Multiply(_metersPerUnit) - _falseNorthing), 2));

Double q = (_c - Math.Pow(ro, 2) * Math.Pow(n, 2) / Math.Pow(SemiMajor, 2)) / n;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace ProjNet.CoordinateSystems.Projections
/// to one another in the projected domain.</para>
/// </remarks>
internal class LambertConformalConic2SP<TCoordinate> : MapProjection<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>, IComparable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>, IComparable<TCoordinate>,
IComputable<Double, TCoordinate>,
IConvertible
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace ProjNet.CoordinateSystems.Projections
/// Projections inherit from this abstract class to get access to useful mathematical functions.
/// </summary>
internal abstract class MapProjection<TCoordinate> : MathTransform<TCoordinate>, IProjection
where TCoordinate : ICoordinate, IEquatable<TCoordinate>, IComparable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>, IComparable<TCoordinate>,
IComputable<Double, TCoordinate>,
IConvertible
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace ProjNet.CoordinateSystems.Projections
/// </para>
/// </remarks>
internal class Mercator<TCoordinate> : MapProjection<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>, IComparable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>, IComparable<TCoordinate>,
IComputable<Double, TCoordinate>,
IConvertible
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace ProjNet.CoordinateSystems.Projections
/// U.S. Geological Survey Professional Paper 1395, 1987)</para>
/// </remarks>
internal class TransverseMercator<TCoordinate> : MapProjection<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>, IComparable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>, IComparable<TCoordinate>,
IComputable<Double, TCoordinate>,
IConvertible
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace ProjNet.CoordinateSystems.Transformations
{
internal class ConcatenatedTransform<TCoordinate> : MathTransform<TCoordinate>
where TCoordinate : ICoordinate, IEquatable<TCoordinate>,
where TCoordinate : ICoordinate<TCoordinate>, IEquatable<TCoordinate>,
IComparable<TCoordinate>, IConvertible,
IComputable<Double, TCoordinate>
{
Expand Down
Loading

0 comments on commit bf20b3c

Please sign in to comment.