< Summary - ReFlex - Library

Information
Class: ReFlex.Core.Common.Components.Point3Indexed
Assembly: ReFlex.Core.Common
File(s): D:\a\reflex\reflex\library\src\Core\Common\Components\Point3Indexed.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 17
Coverable lines: 17
Total lines: 68
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_X()100%210%
get_Y()100%210%
get_Z()100%210%
get_Column()100%210%
get_Row()100%210%
get_IsValid()100%210%
get_IsFiltered()100%210%
.ctor(...)100%210%

File(s)

D:\a\reflex\reflex\library\src\Core\Common\Components\Point3Indexed.cs

#LineLine coverage
 1using System;
 2
 3namespace ReFlex.Core.Common.Components
 4{
 5    [Serializable]
 6    public class Point3Indexed
 7    {
 8        /// <inheritdoc />
 9        /// <summary>
 10        /// Gets or sets the x value.
 11        /// </summary>
 12        /// <value>
 13        /// The x value.
 14        /// </value>
 015        public float X { get; set; }
 16
 17        /// <inheritdoc />
 18        /// <summary>
 19        /// Gets or sets the y value.
 20        /// </summary>
 21        /// <value>
 22        /// The y value.
 23        /// </value>
 024        public float Y { get; set; }
 25
 26        /// <inheritdoc />
 27        /// <summary>
 28        /// Gets or sets the z value.
 29        /// </summary>
 30        /// <value>
 31        /// The z value.
 32        /// </value>
 033        public float Z { get; set; }
 34
 035        public int Column { get; set; }
 36
 037        public int Row { get; set; }
 38
 39        /// <summary>
 40        /// Returns true if ... is valid.
 41        /// </summary>
 42        /// <value>
 43        ///   <c>true</c> if this instance is valid; otherwise, <c>false</c>.
 44        /// </value>
 045        public bool IsValid { get; set; } = true;
 46
 47
 48        /// <summary>
 49        /// Returns true if the point is excluded by a filter.
 50        /// </summary>
 51        /// <value>
 52        ///   <c>true</c> if this instance is removed by a filtered, otherwise <c>false</c>.
 53        /// </value>
 054        public bool IsFiltered { get; set; } = false;
 55
 056        public Point3Indexed(Point3 point, int col, int row)
 057        {
 058            X = point.X;
 059            Y = point.Y;
 060            Z = point.Z;
 061            IsValid = point.IsValid;
 062            IsFiltered = point.IsFiltered;
 063            Column = col;
 064            Row = row;
 065        }
 66
 67    }
 68}