Example #1
0
        public Vector2?ProjectTangent(Vector3 spacePoint, Vector3 tangent)
        {
            var localPoint   = LocalToGlobal.ApplyInv(spacePoint);
            var localTangent = LocalToGlobal.Rotation.ApplyInv(tangent);

            return(LocalModel.ProjectTangent(localPoint, localTangent));
        }
Example #2
0
        public Segment3?CropVisible(Segment3 segment)
        {
            var localSegment = LocalToGlobal.ApplyInv(segment);

            var localCrop = LocalModel.CropVisible(localSegment);

            if (localCrop == null)
            {
                return(null);
            }
            else
            {
                return(LocalToGlobal.Apply(localCrop.Value));
            }
        }
 public double Distance2(Vector3 point)
 {
     return(_localPolyhedron.Distance2(LocalToGlobal.ApplyInv(point)));
 }
 public bool Contains(Vector3 point)
 {
     return(_localPolyhedron.Contains(LocalToGlobal.ApplyInv(point)));
 }
Example #5
0
        public Segment2?Project(Segment3 segment)
        {
            var localSegment = LocalToGlobal.ApplyInv(segment);

            return(LocalModel.Project(localSegment));
        }
Example #6
0
        public Vector2?Project(Vector3 spacePoint)
        {
            var localPoint = LocalToGlobal.ApplyInv(spacePoint);

            return(LocalModel.Project(localPoint));
        }