SCNPlane

public extension SCNPlane
  • SwifterSwift: Creates a square plane geometry with the specified width.

    Declaration

    Swift

    convenience init(width: CGFloat)

    Parameters

    width

    The width and height of the plane along the x-axis and y-axis of its local coordinate space.

  • SwifterSwift: Creates a plane geometry with the specified width, height and material.

    Declaration

    Swift

    convenience init(width: CGFloat, height: CGFloat, material: SCNMaterial)

    Parameters

    width

    The width of the plane along the x-axis of its local coordinate space.

    height

    The height of the plane along the y-axis of its local coordinate space.

    material

    The material of the geometry.

  • SwifterSwift: Creates a square plane geometry with the specified width and material.

    Declaration

    Swift

    convenience init(width: CGFloat, material: SCNMaterial)

    Parameters

    width

    The width and height of the plane along the x-axis and y-axis of its local coordinate space.

    material

    The material of the geometry.

  • SwifterSwift: Creates a plane geometry with the specified width, height and material color.

    Declaration

    Swift

    convenience init(width: CGFloat, height: CGFloat, color: Color)

    Parameters

    width

    The width of the plane along the x-axis of its local coordinate space.

    height

    The height of the plane along the y-axis of its local coordinate space.

    color

    The color of the geometry’s material.

  • SwifterSwift: Creates a square plane geometry with the specified width and material color.

    Declaration

    Swift

    convenience init(width: CGFloat, color: Color)

    Parameters

    width

    The width and height of the plane along the x-axis and y-axis of its local coordinate space.

    color

    The color of the geometry’s material.