Vixen
02b45cc4
csharp
public readonly struct Int3

A three-component integer vector: volume texture extents, voxel and cluster coordinates, compute dispatch sizes.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (11)

  • public readonly int X

    The X component.

  • public readonly int Y

    The Y component.

  • public readonly int Z

    The Z component.

  • public static Int3 Zero

    All components zero.

  • public static Int3 One

    All components one.

  • public static Int3 UnitX

    The X axis.

  • public static Int3 UnitY

    The Y axis.

  • public static Int3 UnitZ

    The Z axis.

  • public int this[int index]

    The component at .

  • public Int2 Xy

    The X and Y components.

  • public long Volume

    The product of the components — the element count of a volume.

Methods (22)

  • public Int3(int x, int y, int z)

    Builds a vector from its components.

  • public Int3(int value)

    Builds a vector with every component set to .

  • public static Int3 Min(Int3 left, Int3 right)

    The component-wise minimum.

  • public static Int3 Max(Int3 left, Int3 right)

    The component-wise maximum.

  • public static Int3 Clamp(Int3 value, Int3 min, Int3 max)

    Constrains each component to the matching interval.

  • public static Int3 operator +(Int3 left, Int3 right)

    Adds two vectors.

  • public static Int3 operator -(Int3 left, Int3 right)

    Subtracts one vector from another.

  • public static Int3 operator -(Int3 value)

    Negates a vector.

  • public static Int3 operator *(Int3 left, Int3 right)

    Multiplies component by component.

  • public static Int3 operator *(Int3 value, int scale)

    Scales a vector.

  • public static Int3 operator *(int scale, Int3 value)

    Scales a vector.

  • public static Int3 operator /(Int3 left, Int3 right)

    Divides component by component, truncating toward zero.

  • public static Int3 operator /(Int3 value, int divisor)

    Divides by a scalar, truncating toward zero.

  • public static bool operator ==(Int3 left, Int3 right)

    Component-wise equality.

  • public static bool operator !=(Int3 left, Int3 right)

    The negation of op_Equality.

  • public static implicit operator Vector3(Int3 value)

    Widens to a float vector, which is always exact for these magnitudes.

  • public void Deconstruct(out int x, out int y, out int z)

    Splits the vector into its components.

  • public bool Equals(Int3 other)

    Indicates whether the current object is equal to another object of the same type.

  • public override bool Equals(object? obj)

    Indicates whether this instance and a specified object are equal.

  • public override int GetHashCode()

    Returns the hash code for this instance.

  • public override string ToString()

    Returns the fully qualified type name of this instance.

  • public string ToString(string? format, IFormatProvider? formatProvider)

    Formats the value of the current instance using the specified format.

Used by (70, showing 40)

  • ArenaThirdPersonShooter
  • ArenaFrameThirdPersonShooter
  • AutoExposureRendererVixen.Rendering.PostFx
  • AutoExposureTestsVixen.Rendering.PostFx.Tests
  • ClusterGridVixen.Rendering
  • ClusterRasterTestsVixen.Rendering.Tests
  • ClusteredLightingTestsVixen.Rendering.Tests
  • CompositorAssetTestsVixen.Rendering.Tests
  • ComputeRendererVixen.Rendering
  • EffectLoaderVixen.Shaders
  • EnvironmentTextureVixen.Rendering
  • GlCommandListVixen.Graphics.OpenGL
  • GlCommandListTestsVixen.Graphics.OpenGL.Tests
  • GlDeviceVixen.Graphics.OpenGL
  • GlobalDistanceFieldVixen.Rendering.DistanceFields
  • GlobalDistanceFieldTextureVixen.Rendering
  • ICommandListVixen.Graphics
  • Int4Vixen.Core.Mathematics
  • IrradianceBrickVixen.Rendering.IrradianceFields
  • IrradianceBrickCursorVixen.Rendering.IrradianceFields
  • IrradianceBrickPoolVixen.Rendering.IrradianceFields
  • IrradianceBrickPoolTestsVixen.Rendering.IrradianceFields.Tests
  • IrradianceCubeCaptureVixen.Rendering
  • IrradianceFieldVixen.Rendering.IrradianceFields
  • IrradianceFieldTextureVixen.Rendering
  • IrradianceFieldTextureTestsVixen.Rendering.Tests
  • IrradianceFillDeviceTestsVixen.Graphics.Golden.Tests
  • IrradianceFillJobVixen.Rendering
  • IrradianceIndirectionVixen.Rendering.IrradianceFields
  • IrradianceIndirectionTestsVixen.Rendering.IrradianceFields.Tests
  • IrradianceRefinementPolicyVixen.Rendering.IrradianceFields
  • IrradianceRefinementPolicyTestsVixen.Rendering.IrradianceFields.Tests
  • IrradianceRepairDeviceTestsVixen.Graphics.Golden.Tests
  • IrradianceRepairJobVixen.Rendering
  • LeakTestsVixen.Rendering.IrradianceFields.Tests
  • MeshDistanceFieldVixen.Rendering.DistanceFields
  • MeshDistanceFieldBakerVixen.Rendering.DistanceFields
  • MeshDistanceFieldBakerTestsVixen.Rendering.DistanceFields.Tests
  • MeshDistanceFieldTestsVixen.Rendering.DistanceFields.Tests
  • MeshletPageBuilderVixen.Rendering.VirtualGeometry