• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

Struct Vector3

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Inferno
Assembly: Inferno.Desktop.dll
Syntax
public struct Vector3

Constructors

| Improve this Doc View Source

Vector3(Vector2, Single)

Declaration
public Vector3(Vector2 value, float z)
Parameters
Type Name Description
Vector2 value
System.Single z
| Improve this Doc View Source

Vector3(Single, Single, Single)

Create a new vector2.

Declaration
public Vector3(float x, float y, float z)
Parameters
Type Name Description
System.Single x

X component

System.Single y

Y component

System.Single z

Z component

Fields

| Improve this Doc View Source

X

The X component of the vector.

Declaration
public float X
Field Value
Type Description
System.Single
| Improve this Doc View Source

Y

The Y component of the vector

Declaration
public float Y
Field Value
Type Description
System.Single
| Improve this Doc View Source

Z

The Z component of the vector

Declaration
public float Z
Field Value
Type Description
System.Single

Properties

| Improve this Doc View Source

Magnitude

The magnitude of the vector.

Declaration
public float Magnitude { get; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

Dot(Vector3, Vector3)

Get the dot product of 2 vectors.

Declaration
public static float Dot(Vector3 a, Vector3 b)
Parameters
Type Name Description
Vector3 a
Vector3 b
Returns
Type Description
System.Single
| Improve this Doc View Source

Equals(Vector3)

Declaration
public bool Equals(Vector3 other)
Parameters
Type Name Description
Vector3 other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()
| Improve this Doc View Source

Transform(Vector3, Matrix)

Declaration
public static Vector3 Transform(Vector3 position, Matrix matrix)
Parameters
Type Name Description
Vector3 position
Matrix matrix
Returns
Type Description
Vector3

Operators

| Improve this Doc View Source

Addition(Vector3, Vector3)

Declaration
public static Vector3 operator +(Vector3 a, Vector3 b)
Parameters
Type Name Description
Vector3 a
Vector3 b
Returns
Type Description
Vector3
| Improve this Doc View Source

Addition(Vector3, Int32)

Declaration
public static Vector3 operator +(Vector3 a, int b)
Parameters
Type Name Description
Vector3 a
System.Int32 b
Returns
Type Description
Vector3
| Improve this Doc View Source

Addition(Vector3, Single)

Declaration
public static Vector3 operator +(Vector3 a, float b)
Parameters
Type Name Description
Vector3 a
System.Single b
Returns
Type Description
Vector3
| Improve this Doc View Source

Division(Vector3, Vector3)

Declaration
public static Vector3 operator /(Vector3 a, Vector3 b)
Parameters
Type Name Description
Vector3 a
Vector3 b
Returns
Type Description
Vector3
| Improve this Doc View Source

Division(Vector3, Int32)

Declaration
public static Vector3 operator /(Vector3 a, int b)
Parameters
Type Name Description
Vector3 a
System.Int32 b
Returns
Type Description
Vector3
| Improve this Doc View Source

Division(Vector3, Single)

Declaration
public static Vector3 operator /(Vector3 a, float b)
Parameters
Type Name Description
Vector3 a
System.Single b
Returns
Type Description
Vector3
| Improve this Doc View Source

Equality(Vector3, Vector3)

Declaration
public static bool operator ==(Vector3 a, Vector3 b)
Parameters
Type Name Description
Vector3 a
Vector3 b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(Vector3, Vector3)

Declaration
public static bool operator !=(Vector3 a, Vector3 b)
Parameters
Type Name Description
Vector3 a
Vector3 b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Multiply(Vector3, Vector3)

Declaration
public static Vector3 operator *(Vector3 a, Vector3 b)
Parameters
Type Name Description
Vector3 a
Vector3 b
Returns
Type Description
Vector3
| Improve this Doc View Source

Multiply(Vector3, Int32)

Declaration
public static Vector3 operator *(Vector3 a, int b)
Parameters
Type Name Description
Vector3 a
System.Int32 b
Returns
Type Description
Vector3
| Improve this Doc View Source

Multiply(Vector3, Single)

Declaration
public static Vector3 operator *(Vector3 a, float b)
Parameters
Type Name Description
Vector3 a
System.Single b
Returns
Type Description
Vector3
| Improve this Doc View Source

Subtraction(Vector3, Vector3)

Declaration
public static Vector3 operator -(Vector3 a, Vector3 b)
Parameters
Type Name Description
Vector3 a
Vector3 b
Returns
Type Description
Vector3
| Improve this Doc View Source

Subtraction(Vector3, Int32)

Declaration
public static Vector3 operator -(Vector3 a, int b)
Parameters
Type Name Description
Vector3 a
System.Int32 b
Returns
Type Description
Vector3
| Improve this Doc View Source

Subtraction(Vector3, Single)

Declaration
public static Vector3 operator -(Vector3 a, float b)
Parameters
Type Name Description
Vector3 a
System.Single b
Returns
Type Description
Vector3
  • Improve this Doc
  • View Source
Back to top Generated by DocFX