コード例 #1
0
 /// <summary>
 /// Gets which orthant this index is located in with respect to the specified origin index.
 /// </summary>
 /// <param name="origin">The origin index.</param>
 /// <returns>The orthant of this index with respect to the origin index.</returns>
 public Orthant4D GetOrthant(Index4D origin = default(Index4D)) =>
 (Orthant4D)InternalIndexUtilities.GetOrthantOfAxis(this.X, origin.X, (int)Axis4D.X) |
 (Orthant4D)InternalIndexUtilities.GetOrthantOfAxis(this.Y, origin.Y, (int)Axis4D.Y) |
 (Orthant4D)InternalIndexUtilities.GetOrthantOfAxis(this.Z, origin.Z, (int)Axis4D.Z) |
 (Orthant4D)InternalIndexUtilities.GetOrthantOfAxis(this.W, origin.W, (int)Axis4D.W);
コード例 #2
0
 /// <summary>
 /// Gets which orthant this index is located in with respect to the specified origin index.
 /// </summary>
 /// <param name="origin">The origin index.</param>
 /// <returns>The orthant of this index with respect to the origin index.</returns>
 public Orthant1D GetOrthant(Index1D origin = default(Index1D)) =>
 (Orthant1D)InternalIndexUtilities.GetOrthantOfAxis(this.X, origin.X, (int)Axis1D.X);
コード例 #3
0
ファイル: Index3D.cs プロジェクト: aurodev/Xenko-Voxelscape
 /// <summary>
 /// Gets which orthant this index is located in with respect to the specified origin index.
 /// </summary>
 /// <param name="origin">The origin index.</param>
 /// <returns>The orthant of this index with respect to the origin index.</returns>
 public Orthant3D GetOrthant(Index3D origin = default(Index3D)) =>
 (Orthant3D)InternalIndexUtilities.GetOrthantOfAxis(this.X, origin.X, (int)Axis3D.X) |
 (Orthant3D)InternalIndexUtilities.GetOrthantOfAxis(this.Y, origin.Y, (int)Axis3D.Y) |
 (Orthant3D)InternalIndexUtilities.GetOrthantOfAxis(this.Z, origin.Z, (int)Axis3D.Z);
コード例 #4
0
 /// <summary>
 /// Gets which orthant this index is located in with respect to the specified origin index.
 /// </summary>
 /// <param name="origin">The origin index.</param>
 /// <returns>The orthant of this index with respect to the origin index.</returns>
 public Orthant2D GetOrthant(Index2D origin = default(Index2D)) =>
 (Orthant2D)InternalIndexUtilities.GetOrthantOfAxis(this.X, origin.X, (int)Axis2D.X) |
 (Orthant2D)InternalIndexUtilities.GetOrthantOfAxis(this.Y, origin.Y, (int)Axis2D.Y);